diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-02-09 13:02:09 +0000 | 
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-02-09 13:02:09 +0000 | 
| commit | 62fd9391bbfde47177fb36434d9664e47f4cf656 (patch) | |
| tree | 83c1361b41bac431f8dbddb92859fb28e76455a5 /lib/collections.h | |
| parent | Big of validation on getSurface (diff) | |
| download | ilt-62fd9391bbfde47177fb36434d9664e47f4cf656.tar.bz2 ilt-62fd9391bbfde47177fb36434d9664e47f4cf656.tar.xz ilt-62fd9391bbfde47177fb36434d9664e47f4cf656.zip | |
Initial commit setting terrain during network construction
This is all in the wrong place, it shouldn't be part of the network interface.
Diffstat (limited to 'lib/collections.h')
| -rw-r--r-- | lib/collections.h | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/lib/collections.h b/lib/collections.h index 6f26eae..fcd65d3 100644 --- a/lib/collections.h +++ b/lib/collections.h @@ -107,6 +107,15 @@ operator+=(std::vector<T...> & in, std::vector<T...> && src)  	return in;  } +template<typename... T> +constexpr auto +operator+(std::vector<T...> in1, std::vector<T...> in2) +{ +	in1.reserve(in1.size() + in2.size()); +	std::move(in2.begin(), in2.end(), std::back_inserter(in1)); +	return in1; +} +  template<typename... T, typename Vn>  [[nodiscard]] constexpr auto  operator+(const std::vector<T...> & in, Vn && vn) | 
