CppELib 1.7.0
Loading...
Searching...
No Matches
Container::Array< T, Size > Struct Template Reference

Similar as std::array of C++11. More...

#include <Array.h>

Public Types

typedef T value_type
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 
typedef value_typeiterator
 
typedef const value_typeconst_iterator
 
typedef value_typereference
 
typedef const value_typeconst_reference
 
typedef value_typepointer
 
typedef const value_typeconst_pointer
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 

Public Member Functions

size_type size () const
 
size_type max_size () const
 
bool empty () const
 
reference operator[] (size_type idx)
 
const_reference operator[] (size_type idx) const
 
reference at (size_type idx)
 
const_reference at (size_type idx) const
 
pointer data ()
 
const_pointer data () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
void fill (const T &data)
 

Detailed Description

template<typename T, std::size_t Size>
struct Container::Array< T, Size >

Similar as std::array of C++11.

Template Parameters
TType of element
SizeNumber of elements

Member Typedef Documentation

◆ const_iterator

template<typename T , std::size_t Size>
typedef const value_type* Container::Array< T, Size >::const_iterator

◆ const_pointer

template<typename T , std::size_t Size>
typedef const value_type* Container::Array< T, Size >::const_pointer

◆ const_reference

template<typename T , std::size_t Size>
typedef const value_type& Container::Array< T, Size >::const_reference

◆ const_reverse_iterator

template<typename T , std::size_t Size>
typedef std::reverse_iterator<const_iterator> Container::Array< T, Size >::const_reverse_iterator

◆ difference_type

template<typename T , std::size_t Size>
typedef std::ptrdiff_t Container::Array< T, Size >::difference_type

◆ iterator

template<typename T , std::size_t Size>
typedef value_type* Container::Array< T, Size >::iterator

◆ pointer

template<typename T , std::size_t Size>
typedef value_type* Container::Array< T, Size >::pointer

◆ reference

template<typename T , std::size_t Size>
typedef value_type& Container::Array< T, Size >::reference

◆ reverse_iterator

template<typename T , std::size_t Size>
typedef std::reverse_iterator<iterator> Container::Array< T, Size >::reverse_iterator

◆ size_type

template<typename T , std::size_t Size>
typedef std::size_t Container::Array< T, Size >::size_type

◆ value_type

template<typename T , std::size_t Size>
typedef T Container::Array< T, Size >::value_type

Member Function Documentation

◆ at() [1/2]

template<typename T , std::size_t Size>
reference Container::Array< T, Size >::at ( size_type  idx)
inline

◆ at() [2/2]

template<typename T , std::size_t Size>
const_reference Container::Array< T, Size >::at ( size_type  idx) const
inline

◆ back() [1/2]

template<typename T , std::size_t Size>
reference Container::Array< T, Size >::back ( )
inline

◆ back() [2/2]

template<typename T , std::size_t Size>
const_reference Container::Array< T, Size >::back ( ) const
inline

◆ begin() [1/2]

template<typename T , std::size_t Size>
iterator Container::Array< T, Size >::begin ( )
inline

◆ begin() [2/2]

template<typename T , std::size_t Size>
const_iterator Container::Array< T, Size >::begin ( ) const
inline

◆ data() [1/2]

template<typename T , std::size_t Size>
pointer Container::Array< T, Size >::data ( )
inline

◆ data() [2/2]

template<typename T , std::size_t Size>
const_pointer Container::Array< T, Size >::data ( ) const
inline

◆ empty()

template<typename T , std::size_t Size>
bool Container::Array< T, Size >::empty ( ) const
inline

◆ end() [1/2]

template<typename T , std::size_t Size>
iterator Container::Array< T, Size >::end ( )
inline

◆ end() [2/2]

template<typename T , std::size_t Size>
const_iterator Container::Array< T, Size >::end ( ) const
inline

◆ fill()

template<typename T , std::size_t Size>
void Container::Array< T, Size >::fill ( const T data)
inline

◆ front() [1/2]

template<typename T , std::size_t Size>
reference Container::Array< T, Size >::front ( )
inline

◆ front() [2/2]

template<typename T , std::size_t Size>
const_reference Container::Array< T, Size >::front ( ) const
inline

◆ max_size()

template<typename T , std::size_t Size>
size_type Container::Array< T, Size >::max_size ( ) const
inline

◆ operator[]() [1/2]

template<typename T , std::size_t Size>
reference Container::Array< T, Size >::operator[] ( size_type  idx)
inline

◆ operator[]() [2/2]

template<typename T , std::size_t Size>
const_reference Container::Array< T, Size >::operator[] ( size_type  idx) const
inline

◆ rbegin() [1/2]

template<typename T , std::size_t Size>
reverse_iterator Container::Array< T, Size >::rbegin ( )
inline

◆ rbegin() [2/2]

template<typename T , std::size_t Size>
const_reverse_iterator Container::Array< T, Size >::rbegin ( ) const
inline

◆ rend() [1/2]

template<typename T , std::size_t Size>
reverse_iterator Container::Array< T, Size >::rend ( )
inline

◆ rend() [2/2]

template<typename T , std::size_t Size>
const_reverse_iterator Container::Array< T, Size >::rend ( ) const
inline

◆ size()

template<typename T , std::size_t Size>
size_type Container::Array< T, Size >::size ( ) const
inline

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