Speeduino
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
array< T, N > Struct Template Reference

#include <array.h>

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

Public Types

using value_type = T
 
using size_type = size_t
 
using reference = T &
 
using const_reference = const T &
 
using iterator = T *
 
using const_iterator = const T *
 

Public Member Functions

constexpr array ()=default
 
constexpr reference operator[] (size_type index) noexcept
 
constexpr const_reference operator[] (size_type index) const noexcept
 
constexpr reference at (size_type index)
 
constexpr const_reference at (size_type index) const
 
constexpr reference front () noexcept
 
constexpr const_reference front () const noexcept
 
constexpr reference back () noexcept
 
constexpr const_reference back () const noexcept
 
constexpr Tdata () noexcept
 
constexpr const Tdata () const noexcept
 
constexpr iterator begin () noexcept
 
constexpr const_iterator begin () const noexcept
 
constexpr iterator end () noexcept
 
constexpr const_iterator end () const noexcept
 
constexpr bool empty () const noexcept
 
constexpr size_type size () const noexcept
 
constexpr size_type max_size () const noexcept
 
constexpr void fill (const T &value)
 

Public Attributes

T _elements [N] = {}
 

Member Typedef Documentation

◆ const_iterator

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

◆ const_reference

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

◆ iterator

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

◆ reference

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

◆ size_type

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

◆ value_type

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

Constructor & Destructor Documentation

◆ array()

template<typename T , size_t N>
constexpr array< T, N >::array ( )
constexprdefault
Here is the caller graph for this function:

Member Function Documentation

◆ at() [1/2]

template<typename T , size_t N>
constexpr reference array< T, N >::at ( size_type  index)
inlineconstexpr

◆ at() [2/2]

template<typename T , size_t N>
constexpr const_reference array< T, N >::at ( size_type  index) const
inlineconstexpr

◆ back() [1/2]

template<typename T , size_t N>
constexpr const_reference array< T, N >::back ( ) const
inlineconstexprnoexcept

◆ back() [2/2]

template<typename T , size_t N>
constexpr reference array< T, N >::back ( )
inlineconstexprnoexcept

◆ begin() [1/2]

template<typename T , size_t N>
constexpr const_iterator array< T, N >::begin ( ) const
inlineconstexprnoexcept

◆ begin() [2/2]

template<typename T , size_t N>
constexpr iterator array< T, N >::begin ( )
inlineconstexprnoexcept
Here is the caller graph for this function:

◆ data() [1/2]

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

◆ data() [2/2]

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

◆ empty()

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

◆ end() [1/2]

template<typename T , size_t N>
constexpr const_iterator array< T, N >::end ( ) const
inlineconstexprnoexcept
Here is the call graph for this function:

◆ end() [2/2]

template<typename T , size_t N>
constexpr iterator array< T, N >::end ( )
inlineconstexprnoexcept
Here is the call graph for this function:

◆ fill()

template<typename T , size_t N>
constexpr void array< T, N >::fill ( const T value)
inlineconstexpr
Here is the call graph for this function:
Here is the caller graph for this function:

◆ front() [1/2]

template<typename T , size_t N>
constexpr const_reference array< T, N >::front ( ) const
inlineconstexprnoexcept

◆ front() [2/2]

template<typename T , size_t N>
constexpr reference array< T, N >::front ( )
inlineconstexprnoexcept

◆ max_size()

template<typename T , size_t N>
constexpr size_type array< T, N >::max_size ( ) const
inlineconstexprnoexcept
Here is the call graph for this function:

◆ operator[]() [1/2]

template<typename T , size_t N>
constexpr const_reference array< T, N >::operator[] ( size_type  index) const
inlineconstexprnoexcept

◆ operator[]() [2/2]

template<typename T , size_t N>
constexpr reference array< T, N >::operator[] ( size_type  index)
inlineconstexprnoexcept

◆ size()

template<typename T , size_t N>
constexpr size_type array< T, N >::size ( ) const
inlineconstexprnoexcept
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _elements

template<typename T , size_t N>
T array< T, N >::_elements[N] = {}

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