openMSX
Public Types | Public Member Functions | Public Attributes | List of all members
cstd::array< T, N > Struct Template Reference

#include <cstd.hh>

Collaboration diagram for cstd::array< T, N >:
Collaboration graph
[legend]

Public Types

using value_type = T
 
using pointer = T *
 
using const_pointer = const T *
 
using reference = T &
 
using const_reference = const T &
 
using iterator = T *
 
using const_iterator = const T *
 
using size_type = size_t
 
using difference_type = ptrdiff_t
 

Public Member Functions

constexpr T * begin () noexcept
 
constexpr const T * begin () const noexcept
 
constexpr T * end () noexcept
 
constexpr const T * end () const noexcept
 
constexpr size_type size () const noexcept
 
constexpr bool empty () const noexcept
 
constexpr T & operator[] (size_type n) noexcept
 
constexpr const T & operator[] (size_type n) const noexcept
 
constexpr T & front () noexcept
 
constexpr const T & front () const noexcept
 
constexpr T & back () noexcept
 
constexpr const T & back () const noexcept
 
constexpr T * data () noexcept
 
constexpr const T * data () const noexcept
 

Public Attributes

storage [N]
 

Detailed Description

template<typename T, size_t N>
struct cstd::array< T, N >

Definition at line 148 of file cstd.hh.

Member Typedef Documentation

◆ const_iterator

template<typename T , size_t N>
using cstd::array< T, N >::const_iterator = const T*

Definition at line 158 of file cstd.hh.

◆ const_pointer

template<typename T , size_t N>
using cstd::array< T, N >::const_pointer = const T*

Definition at line 154 of file cstd.hh.

◆ const_reference

template<typename T , size_t N>
using cstd::array< T, N >::const_reference = const T&

Definition at line 156 of file cstd.hh.

◆ difference_type

template<typename T , size_t N>
using cstd::array< T, N >::difference_type = ptrdiff_t

Definition at line 160 of file cstd.hh.

◆ iterator

template<typename T , size_t N>
using cstd::array< T, N >::iterator = T*

Definition at line 157 of file cstd.hh.

◆ pointer

template<typename T , size_t N>
using cstd::array< T, N >::pointer = T*

Definition at line 153 of file cstd.hh.

◆ reference

template<typename T , size_t N>
using cstd::array< T, N >::reference = T&

Definition at line 155 of file cstd.hh.

◆ size_type

template<typename T , size_t N>
using cstd::array< T, N >::size_type = size_t

Definition at line 159 of file cstd.hh.

◆ value_type

template<typename T , size_t N>
using cstd::array< T, N >::value_type = T

Definition at line 152 of file cstd.hh.

Member Function Documentation

◆ back() [1/2]

template<typename T , size_t N>
constexpr T& cstd::array< T, N >::back ( )
inlinenoexcept

Definition at line 212 of file cstd.hh.

◆ back() [2/2]

template<typename T , size_t N>
constexpr const T& cstd::array< T, N >::back ( ) const
inlinenoexcept

Definition at line 217 of file cstd.hh.

◆ begin() [1/2]

template<typename T , size_t N>
constexpr T* cstd::array< T, N >::begin ( )
inlinenoexcept

Definition at line 162 of file cstd.hh.

◆ begin() [2/2]

template<typename T , size_t N>
constexpr const T* cstd::array< T, N >::begin ( ) const
inlinenoexcept

Definition at line 167 of file cstd.hh.

◆ data() [1/2]

template<typename T , size_t N>
constexpr T* cstd::array< T, N >::data ( )
inlinenoexcept

Definition at line 222 of file cstd.hh.

◆ data() [2/2]

template<typename T , size_t N>
constexpr const T* cstd::array< T, N >::data ( ) const
inlinenoexcept

Definition at line 227 of file cstd.hh.

◆ empty()

template<typename T , size_t N>
constexpr bool cstd::array< T, N >::empty ( ) const
inlinenoexcept

Definition at line 187 of file cstd.hh.

◆ end() [1/2]

template<typename T , size_t N>
constexpr T* cstd::array< T, N >::end ( )
inlinenoexcept

Definition at line 172 of file cstd.hh.

◆ end() [2/2]

template<typename T , size_t N>
constexpr const T* cstd::array< T, N >::end ( ) const
inlinenoexcept

Definition at line 177 of file cstd.hh.

◆ front() [1/2]

template<typename T , size_t N>
constexpr T& cstd::array< T, N >::front ( )
inlinenoexcept

Definition at line 202 of file cstd.hh.

◆ front() [2/2]

template<typename T , size_t N>
constexpr const T& cstd::array< T, N >::front ( ) const
inlinenoexcept

Definition at line 207 of file cstd.hh.

◆ operator[]() [1/2]

template<typename T , size_t N>
constexpr T& cstd::array< T, N >::operator[] ( size_type  n)
inlinenoexcept

Definition at line 192 of file cstd.hh.

◆ operator[]() [2/2]

template<typename T , size_t N>
constexpr const T& cstd::array< T, N >::operator[] ( size_type  n) const
inlinenoexcept

Definition at line 197 of file cstd.hh.

◆ size()

template<typename T , size_t N>
constexpr size_type cstd::array< T, N >::size ( ) const
inlinenoexcept

Definition at line 182 of file cstd.hh.

Member Data Documentation

◆ storage

template<typename T , size_t N>
T cstd::array< T, N >::storage[N]

Definition at line 150 of file cstd.hh.


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