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

cxxomfort's implementation of std::array . More...

Public Member Functions

CXXO_CONSTEXPR14 pointer data () CXXO_NOEXCEPTNOTHROW
 Access to the underlying array.
 
CXXO_CONSTEXPR const_pointer data () const CXXO_NOEXCEPTNOTHROW
 Access to the underlying array.
 
CXXO_CONSTEXPR size_t size () const CXXO_NOEXCEPTNOTHROW
 Size of the array (the same as the constant N )
 
CXXO_CONSTEXPR size_t max_size () const CXXO_NOEXCEPTNOTHROW
 Maximum size of the array (the same as size )
 
CXXO_CONSTEXPR 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.
 
CXXO_CONSTEXPR14 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>
class cxxomfort::array< T, N >

cxxomfort's implementation of std::array .

Utilities:
Implementation of std::array

Cxxomfort exposes its own implementation of std::array so it can be used in some contexts where std::array can't, for example when array is not available (eg.: compilers without TR1), or when std::array does not expose constexpr access to its members (such as in some C++14 mode, C++17 mode implementations).

For general notes see cxxomfort::cxxostd::array .


The documentation for this class was generated from the following file: