cxxomfort  rel.20210622
Simple backports for C++ - http://ryan.gulix.cl/fossil.cgi/cxxomfort/
Public Member Functions | List of all members
array< T, N > Struct Template Reference

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)
 

Detailed Description

template<typename T, size_t N>
struct cxxomfort::cxxostd::array< T, N >

C++11 array class.

std::array<T,N> implementation

<array>:
"std::array"
\:
std::array
Template Parameters
Nthe 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:

See also
https://wg21.link/n1479

The documentation for this struct was generated from the following files: