A std::array like class with all member function (except reverse iterators) as constexpr. More...
#include <xstorage.hpp>
Public Types | |
using | size_type = std::size_t |
using | value_type = T |
using | pointer = value_type* |
using | const_pointer = const value_type* |
using | reference = value_type& |
using | const_reference = const value_type& |
using | difference_type = std::ptrdiff_t |
using | iterator = pointer |
using | const_iterator = const_pointer |
using | reverse_iterator = std::reverse_iterator<const_iterator> |
using | const_reverse_iterator = std::reverse_iterator<const_iterator> |
Public Member Functions | |
constexpr const_reference | operator[] (std::size_t idx) const |
constexpr const_iterator | begin () const noexcept |
constexpr const_iterator | end () const noexcept |
constexpr const_iterator | cbegin () const noexcept |
constexpr const_iterator | cend () const noexcept |
reverse_iterator | rbegin () const noexcept |
reverse_iterator | rend () const noexcept |
const_reverse_iterator | crbegin () const noexcept |
const_reverse_iterator | crend () const noexcept |
constexpr const_pointer | data () const noexcept |
constexpr const_reference | front () const noexcept |
constexpr const_reference | back () const noexcept |
constexpr bool | empty () const noexcept |
constexpr size_type | size () const noexcept |
Public Attributes | |
const T | m_data [N > 0 ? N :1] |
A std::array like class with all member function (except reverse iterators) as constexpr.
The data is immutable once set.
Definition at line 1488 of file xstorage.hpp.
using xt::const_array< T, N >::const_iterator = const_pointer |
Definition at line 1498 of file xstorage.hpp.
using xt::const_array< T, N >::const_pointer = const value_type* |
Definition at line 1493 of file xstorage.hpp.
using xt::const_array< T, N >::const_reference = const value_type& |
Definition at line 1495 of file xstorage.hpp.
using xt::const_array< T, N >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 1501 of file xstorage.hpp.
using xt::const_array< T, N >::difference_type = std::ptrdiff_t |
Definition at line 1496 of file xstorage.hpp.
using xt::const_array< T, N >::iterator = pointer |
Definition at line 1497 of file xstorage.hpp.
using xt::const_array< T, N >::pointer = value_type* |
Definition at line 1492 of file xstorage.hpp.
using xt::const_array< T, N >::reference = value_type& |
Definition at line 1494 of file xstorage.hpp.
using xt::const_array< T, N >::reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 1500 of file xstorage.hpp.
using xt::const_array< T, N >::size_type = std::size_t |
Definition at line 1490 of file xstorage.hpp.
using xt::const_array< T, N >::value_type = T |
Definition at line 1491 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1571 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1512 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1522 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1527 of file xstorage.hpp.
|
inlinenoexcept |
Definition at line 1543 of file xstorage.hpp.
|
inlinenoexcept |
Definition at line 1548 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1553 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1581 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1517 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1562 of file xstorage.hpp.
|
inlineconstexpr |
Definition at line 1503 of file xstorage.hpp.
|
inlinenoexcept |
Definition at line 1533 of file xstorage.hpp.
|
inlinenoexcept |
Definition at line 1538 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1586 of file xstorage.hpp.
const T xt::const_array< T, N >::m_data[N > 0 ? N :1] |
Definition at line 1594 of file xstorage.hpp.