| 29 | /** Concatenate two vectors, moving elements. */ |
| 30 | template<typename V> |
| 31 | inline V Cat(V v1, V&& v2) |
| 32 | { |
| 33 | v1.reserve(v1.size() + v2.size()); |
| 34 | for (auto& arg : v2) { |
| 35 | v1.push_back(std::move(arg)); |
| 36 | } |
| 37 | return v1; |
| 38 | } |
| 39 | |
| 40 | /** Concatenate two vectors. */ |
| 41 | template<typename V> |