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 1441 of file xstorage.hpp.
| using xt::const_array< T, N >::const_iterator = const_pointer |
Definition at line 1451 of file xstorage.hpp.
| using xt::const_array< T, N >::const_pointer = const value_type* |
Definition at line 1446 of file xstorage.hpp.
| using xt::const_array< T, N >::const_reference = const value_type& |
Definition at line 1448 of file xstorage.hpp.
| using xt::const_array< T, N >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 1454 of file xstorage.hpp.
| using xt::const_array< T, N >::difference_type = std::ptrdiff_t |
Definition at line 1449 of file xstorage.hpp.
| using xt::const_array< T, N >::iterator = pointer |
Definition at line 1450 of file xstorage.hpp.
| using xt::const_array< T, N >::pointer = value_type* |
Definition at line 1445 of file xstorage.hpp.
| using xt::const_array< T, N >::reference = value_type& |
Definition at line 1447 of file xstorage.hpp.
| using xt::const_array< T, N >::reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 1453 of file xstorage.hpp.
| using xt::const_array< T, N >::size_type = std::size_t |
Definition at line 1443 of file xstorage.hpp.
| using xt::const_array< T, N >::value_type = T |
Definition at line 1444 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1512 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1461 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1471 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1476 of file xstorage.hpp.
|
inlinenoexcept |
Definition at line 1492 of file xstorage.hpp.
|
inlinenoexcept |
Definition at line 1497 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1502 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1517 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1466 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1507 of file xstorage.hpp.
|
inlineconstexpr |
Definition at line 1456 of file xstorage.hpp.
|
inlinenoexcept |
Definition at line 1482 of file xstorage.hpp.
|
inlinenoexcept |
Definition at line 1487 of file xstorage.hpp.
|
inlineconstexprnoexcept |
Definition at line 1522 of file xstorage.hpp.
| const T xt::const_array< T, N >::m_data[N > 0 ? N :1] |
Definition at line 1527 of file xstorage.hpp.