7 template <
template <
typename...>
typename ContainerType,
typename ElementType>
8 void concatContainers(ContainerType<ElementType>& lhs, ContainerType<ElementType>
const& rhs)
10 lhs.reserve(lhs.size() + rhs.size());
11 lhs.insert(std::end(lhs), std::begin(rhs), std::end(rhs));
14 template <
template <
typename...>
typename ContainerType,
typename ElementType>
15 void concatContainers(ContainerType<ElementType>& lhs, ContainerType<ElementType>&& rhs)
17 lhs.reserve(lhs.size() + rhs.size());
18 lhs.insert(std::end(lhs), std::make_move_iterator(std::begin(rhs)), std::make_move_iterator(std::end(rhs)));
21 template <
template <
typename...>
typename ContainerType,
typename ElementType>
22 ContainerType<ElementType>
25 lhs.reserve(lhs.size() + rhs.size());
26 lhs.insert(std::end(lhs), std::begin(rhs), std::end(rhs));
30 template <
template <
typename...>
typename ContainerType,
typename ElementType>
31 ContainerType<ElementType>
concatContainersCopy(ContainerType<ElementType> lhs, ContainerType<ElementType>&& rhs)
33 lhs.reserve(lhs.size() + rhs.size());
34 lhs.insert(std::end(lhs), std::make_move_iterator(std::begin(rhs)), std::make_move_iterator(std::end(rhs)));
Definition authorization.hpp:10
ContainerType< ElementType > concatContainersCopy(ContainerType< ElementType > lhs, ContainerType< ElementType > const &rhs)
Definition concat_containers.hpp:23
void concatContainers(ContainerType< ElementType > &lhs, ContainerType< ElementType > const &rhs)
Definition concat_containers.hpp:8