MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / append

Method append

Libraries/Reflection/ReflectionFoundation.h:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 /// @return `true` if there was enough space to append the other array to this one
45 template <uint32_t N2>
46 [[nodiscard]] constexpr bool append(const ArrayWithSize<T, N2>& other)
47 {
48 if (size + other.size >= N)
49 return false;
50 for (uint32_t i = 0; i < other.size; ++i)
51 {
52 values[size++] = other.values[i];
53 }
54 return true;
55 }
56
57 /// @brief Append a single item to this array
58 /// @param value Value to append

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected