| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected