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)
 
constexpr const T * begin () const noexcept
 
constexpr const T * 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 span< T > ()
 
 operator span< const T > () const
 

Detailed Description

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

Definition at line 26 of file static_vector.hh.

Constructor & Destructor Documentation

◆ static_vector() [1/2]

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

◆ static_vector() [2/2]

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

Definition at line 37 of file static_vector.hh.

References ranges::copy(), and openmsx::N.

Member Function Documentation

◆ begin()

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

Definition at line 43 of file static_vector.hh.

◆ clear()

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

Definition at line 54 of file static_vector.hh.

◆ empty()

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

Definition at line 47 of file static_vector.hh.

◆ end()

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

Definition at line 44 of file static_vector.hh.

◆ operator span< const T >()

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

Definition at line 57 of file static_vector.hh.

◆ operator span< T >()

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

Definition at line 56 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 49 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 50 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

Definition at line 52 of file static_vector.hh.

References openmsx::N.

◆ size()

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

Definition at line 46 of file static_vector.hh.

Referenced by PerfectMinimalHash::create().


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