|
|
constexpr | sarr (core::zero_t) noexcept |
| | Zero-initialization constructor. Because sarr is not aggretate type, doing: sarr<int,10> tmp{} does not zero-initialize its internals. We need to be explicit about our intent and use a special constructor.
|
| |
|
template<typename InputIt > |
| constexpr | sarr (InputIt first, InputIt last) noexcept |
| |
|
constexpr | sarr (std::initializer_list< T > il) |
| |
|
constexpr | sarr (const sarr &other) |
| |
|
constexpr | sarr (sarr &&other) noexcept |
| |
|
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 |
| |
template<typename T, sarr_detail::size_type N>
class gaia::cnt::sarr< T, N >
Array of elements of type.
- Template Parameters
-
| T | with fixed size and capacity |
| N | allocated on stack. Interface compatiblity with std::array where it matters. |