A constexpr array.
More...
#include <ReflectionFoundation.h>
|
| operator Span< const T > () const |
|
constexpr bool | contains (T value, uint32_t *outIndex=nullptr) const |
| Check if array contains given value, and retrieve index where such item exists. More...
|
|
template<uint32_t N2> |
constexpr bool | append (const ArrayWithSize< T, N2 > &other) |
| Appends another sized array to this one (assuming enough space) More...
|
|
constexpr bool | push_back (const T &value) |
| Append a single item to this array. More...
|
|
bool | equals (Span< const T > other) const |
|
template<typename T,
uint32_t N>
struct SC::Reflection::ArrayWithSize< T, N >
A constexpr array.
- Template Parameters
-
T | Item types |
N | Maximum number of items |
◆ append()
Appends another sized array to this one (assuming enough space)
- Template Parameters
-
N2 | Maximum size of other array |
- Parameters
-
other | The array to append to this one |
- Returns
true
if there was enough space to append the other array to this one
◆ contains()
Check if array contains given value, and retrieve index where such item exists.
- Parameters
-
value | Value to look for |
outIndex | if not nullptr will receive the index where item has been found |
- Returns
true
if ArrayWithSize contains given value
◆ push_back()
Append a single item to this array.
- Parameters
-
- Returns
true
if there was enough space for the value
The documentation for this struct was generated from the following file: