openMSX
Public Member Functions | List of all members
static_vector< T, N > Class Template Reference

#include <static_vector.hh>

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

Public Member Functions

constexpr static_vector ()=default
 
constexpr static_vector (std::initializer_list< T > list)
 
template<typename Range >
constexpr static_vector (from_range_t, Range &&range)
 
constexpr auto begin () const noexcept
 
constexpr auto end () const noexcept
 
constexpr size_t size () const
 
constexpr bool empty () const
 
constexpr T & operator[] (size_t index)
 
constexpr const T & operator[] (size_t index) const
 
constexpr void push_back (const T &a)
 
constexpr void clear ()
 
 operator std::span< T > ()
 
 operator std::span< const T > () const
 

Detailed Description

template<typename T, size_t N>
class static_vector< T, N >

Definition at line 30 of file static_vector.hh.

Constructor & Destructor Documentation

◆ static_vector() [1/3]

template<typename T , size_t N>
constexpr static_vector< T, N >::static_vector ( )
constexprdefault

◆ static_vector() [2/3]

template<typename T , size_t N>
constexpr static_vector< T, N >::static_vector ( std::initializer_list< T >  list)
inlineexplicitconstexpr

Definition at line 41 of file static_vector.hh.

◆ static_vector() [3/3]

template<typename T , size_t N>
template<typename Range >
constexpr static_vector< T, N >::static_vector ( from_range_t  ,
Range &&  range 
)
inlineconstexpr

Definition at line 48 of file static_vector.hh.

References static_vector< T, N >::push_back().

Member Function Documentation

◆ begin()

template<typename T , size_t N>
constexpr auto static_vector< T, N >::begin ( ) const
inlineconstexprnoexcept

Definition at line 54 of file static_vector.hh.

◆ clear()

template<typename T , size_t N>
constexpr void static_vector< T, N >::clear ( )
inlineconstexpr

Definition at line 65 of file static_vector.hh.

Referenced by PerfectMinimalHash::create().

◆ empty()

template<typename T , size_t N>
constexpr bool static_vector< T, N >::empty ( ) const
inlineconstexpr

Definition at line 58 of file static_vector.hh.

◆ end()

template<typename T , size_t N>
constexpr auto static_vector< T, N >::end ( ) const
inlineconstexprnoexcept

Definition at line 55 of file static_vector.hh.

◆ operator std::span< const T >()

template<typename T , size_t N>
static_vector< T, N >::operator std::span< const T > ( ) const
inline

Definition at line 68 of file static_vector.hh.

◆ operator std::span< T >()

template<typename T , size_t N>
static_vector< T, N >::operator std::span< T > ( )
inline

Definition at line 67 of file static_vector.hh.

◆ operator[]() [1/2]

template<typename T , size_t N>
constexpr T & static_vector< T, N >::operator[] ( size_t  index)
inlineconstexpr

Definition at line 60 of file static_vector.hh.

◆ operator[]() [2/2]

template<typename T , size_t N>
constexpr const T & static_vector< T, N >::operator[] ( size_t  index) const
inlineconstexpr

Definition at line 61 of file static_vector.hh.

◆ push_back()

template<typename T , size_t N>
constexpr void static_vector< T, N >::push_back ( const T &  a)
inlineconstexpr

◆ size()

template<typename T , size_t N>
constexpr size_t static_vector< T, N >::size ( ) const
inlineconstexpr

Definition at line 57 of file static_vector.hh.

Referenced by PerfectMinimalHash::create().


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