|
cxxomfort
rel.20210622
Simple backports for C++ - http://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
C++11 array class. More...
Public Member Functions | |
| pointer | data () CXXO_NOEXCEPTNOTHROW |
| Access to the underlying array. | |
| const_pointer | data () const CXXO_NOEXCEPTNOTHROW |
| Access to the underlying array. | |
| size_t | size () const CXXO_NOEXCEPTNOTHROW |
| Size of the array (the same as the constant N ) | |
| size_t | max_size () const CXXO_NOEXCEPTNOTHROW |
| Maximum size of the array (the same as size ) | |
| bool | empty () const CXXO_NOEXCEPTNOTHROW |
Returns true if the array is empty. | |
| reference | front () CXXO_NOEXCEPTNOTHROW |
| Direct access to the first element. | |
| reference | back () CXXO_NOEXCEPTNOTHROW |
| Direct access to the last element. | |
| reference | operator[] (size_t i) CXXO_NOEXCEPTNOTHROW |
| Indexed access (non-throwing) | |
| reference | at (size_t i) |
| Indexed access (throwing) | |
C++11 array class.
std::array<T,N> implementation
| N | the size of the array at compile time |
An implementation of C++03-TR1/C++11's std::array for compilers in C++03 mode that lack TR1.
Main differences with usual TR1 array:
1.8.13