|
SpECTRE
v2025.08.19
|
A std::array implementation with partial C++20 support.
More...
#include <Array.hpp>
Public Types | |
| using | value_type = T |
| using | reference = value_type & |
| using | const_reference = const value_type & |
| using | iterator = value_type * |
| using | const_iterator = const value_type * |
| using | pointer = value_type * |
| using | const_pointer = const value_type * |
| using | size_type = size_t |
| using | difference_type = std::ptrdiff_t |
| using | reverse_iterator = std::reverse_iterator< iterator > |
| using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
Public Attributes | |
| value_type | data_ [Size > 0 ? Size :1] |
A std::array implementation with partial C++20 support.
std::array implementation. We provide this implementation because we need the constexpr operator== from C++20. Note that other C++20 changes, such as the replacement of the other comparison operators in favor of operator<=>, are not implemented. This class can be removed when we support C++20.