80 dest.append(std::move(src));
91 template<
typename T,
typename U>
93 dest.reserve(dest.size() + src.size());
94#ifdef __cpp_lib_containers_ranges
95 dest.append_range(src);
97 dest.insert(dest.end(), src.begin(), src.end());
109 void append_vector(std::vector<T>& dest,
const std::vector<T>& src)
noexcept {
110 return append_vector(dest, std::span<const T>(src.data(), src.size()));
122 dest.reserve(dest.size() + src.size());
123#ifdef __cpp_lib_containers_ranges
124 dest.append_range(std::move(src));
126 dest.insert(dest.end(), std::make_move_iterator(src.begin()), std::make_move_iterator(src.end()));
DLL-boundary-safe owned byte sequence for the StormByte suite.
DLL-boundary-safe owned contiguous sequence of std::byte.
Definition binary_data.hxx:106
From is implicitly convertible to To (std::is_convertible).
Definition conversions.hxx:74
Root namespace of the StormByte suite.
void append_vector(std::vector< T > &dest, std::span< U > src) noexcept
Appends a span of convertible elements onto a vector.
Definition helpers.hxx:92
void append_bytes(BinaryData &dest, std::span< const std::byte > src) noexcept
Appends a span of bytes onto a BinaryData.
Definition helpers.hxx:61