![]() |
Gaia-ECS v0.9.3
A simple and powerful entity component system
|
Fixed-size stack array with AoS storage. Interface compatiblity with std::array where it matters. More...
#include <sarray_impl.h>
Public Types | |
| using | value_type = T |
| using | reference = T & |
| using | const_reference = const T & |
| using | pointer = T * |
| using | const_pointer = const T * |
| using | view_policy = mem::data_view_policy_aos< T > |
| using | difference_type = sarr_detail::difference_type |
| using | size_type = sarr_detail::size_type |
| using | iterator = pointer |
| using | const_iterator = const_pointer |
| using | iterator_category = core::random_access_iterator_tag |
Public Member Functions | |
| constexpr | sarr (core::zero_t) noexcept |
| Explicit value-initialization constructor for call sites that want zero/value initialization to be obvious. | |
| template<typename InputIt > | |
| constexpr | sarr (InputIt first, InputIt last) noexcept |
| constexpr | sarr (std::initializer_list< T > il) |
| constexpr | sarr (const sarr &other)=default |
| constexpr | sarr (sarr &&other) noexcept=default |
| sarr & | operator= (std::initializer_list< T > il) |
| constexpr sarr & | operator= (const sarr &other) |
| constexpr sarr & | operator= (sarr &&other) noexcept |
| GAIA_NODISCARD constexpr pointer | data () noexcept |
| GAIA_NODISCARD constexpr const_pointer | data () const noexcept |
| GAIA_NODISCARD constexpr decltype(auto) | operator[] (size_type pos) noexcept |
| GAIA_NODISCARD constexpr decltype(auto) | operator[] (size_type pos) const noexcept |
| GAIA_NODISCARD constexpr size_type | size () const noexcept |
| GAIA_NODISCARD constexpr bool | empty () const noexcept |
| GAIA_NODISCARD constexpr size_type | capacity () const noexcept |
| GAIA_NODISCARD constexpr size_type | max_size () const noexcept |
| GAIA_NODISCARD constexpr decltype(auto) | front () noexcept |
| GAIA_NODISCARD constexpr decltype(auto) | front () const noexcept |
| GAIA_NODISCARD constexpr decltype(auto) | back () noexcept |
| GAIA_NODISCARD constexpr decltype(auto) | back () const noexcept |
| GAIA_NODISCARD constexpr auto | begin () noexcept |
| GAIA_NODISCARD constexpr auto | begin () const noexcept |
| GAIA_NODISCARD constexpr auto | cbegin () const noexcept |
| GAIA_NODISCARD constexpr auto | rbegin () noexcept |
| GAIA_NODISCARD constexpr auto | rbegin () const noexcept |
| GAIA_NODISCARD constexpr auto | crbegin () const noexcept |
| GAIA_NODISCARD constexpr auto | end () noexcept |
| GAIA_NODISCARD constexpr auto | end () const noexcept |
| GAIA_NODISCARD constexpr auto | cend () const noexcept |
| GAIA_NODISCARD constexpr auto | rend () noexcept |
| GAIA_NODISCARD constexpr auto | rend () const noexcept |
| GAIA_NODISCARD constexpr auto | crend () const noexcept |
| GAIA_NODISCARD constexpr bool | operator== (const sarr &other) const |
| GAIA_NODISCARD constexpr bool | operator!= (const sarr &other) const |
Public Attributes | |
| T | m_data [N] |
Static Public Attributes | |
| static constexpr size_t | value_size = sizeof(T) |
| static constexpr size_type | extent = N |
Fixed-size stack array with AoS storage. Interface compatiblity with std::array where it matters.
| T | Element type stored directly in the array. |
| N | Number of elements and fixed capacity. |
|
inlineconstexprnoexcept |
Explicit value-initialization constructor for call sites that want zero/value initialization to be obvious.