openMSX
Public Member Functions | Public Attributes | Friends | List of all members
array_with_enum_index< Enum, T, S > Struct Template Reference

#include <stl.hh>

Inheritance diagram for array_with_enum_index< Enum, T, S >:
Inheritance graph
[legend]
Collaboration diagram for array_with_enum_index< Enum, T, S >:
Collaboration graph
[legend]

Public Member Functions

constexpr const auto & operator[] (Enum e) const
 
constexpr auto & operator[] (Enum e)
 
constexpr auto begin () const
 
constexpr auto begin ()
 
constexpr auto end () const
 
constexpr auto end ()
 
constexpr auto empty () const
 
constexpr auto size () const
 
constexpr const auto * data () const
 
constexpr auto * data ()
 

Public Attributes

std::array< T, get_size_helper()> storage
 

Friends

constexpr auto operator<=> (const array_with_enum_index &x, const array_with_enum_index &y)=default
 

Detailed Description

template<typename Enum, typename T, size_t S = size_t(-1)>
struct array_with_enum_index< Enum, T, S >

Definition at line 474 of file stl.hh.

Member Function Documentation

◆ begin() [1/2]

template<typename Enum , typename T , size_t S = size_t(-1)>
constexpr auto array_with_enum_index< Enum, T, S >::begin ( )
inlineconstexpr

Definition at line 495 of file stl.hh.

References array_with_enum_index< Enum, T, S >::storage.

◆ begin() [2/2]

template<typename Enum , typename T , size_t S = size_t(-1)>
constexpr auto array_with_enum_index< Enum, T, S >::begin ( ) const
inlineconstexpr

Definition at line 494 of file stl.hh.

References array_with_enum_index< Enum, T, S >::storage.

◆ data() [1/2]

template<typename Enum , typename T , size_t S = size_t(-1)>
constexpr auto * array_with_enum_index< Enum, T, S >::data ( )
inlineconstexpr

Definition at line 503 of file stl.hh.

References array_with_enum_index< Enum, T, S >::storage.

◆ data() [2/2]

template<typename Enum , typename T , size_t S = size_t(-1)>
constexpr const auto * array_with_enum_index< Enum, T, S >::data ( ) const
inlineconstexpr

Definition at line 502 of file stl.hh.

References array_with_enum_index< Enum, T, S >::storage.

◆ empty()

template<typename Enum , typename T , size_t S = size_t(-1)>
constexpr auto array_with_enum_index< Enum, T, S >::empty ( ) const
inlineconstexpr

Definition at line 499 of file stl.hh.

References array_with_enum_index< Enum, T, S >::storage.

◆ end() [1/2]

template<typename Enum , typename T , size_t S = size_t(-1)>
constexpr auto array_with_enum_index< Enum, T, S >::end ( )
inlineconstexpr

Definition at line 497 of file stl.hh.

References array_with_enum_index< Enum, T, S >::storage.

◆ end() [2/2]

template<typename Enum , typename T , size_t S = size_t(-1)>
constexpr auto array_with_enum_index< Enum, T, S >::end ( ) const
inlineconstexpr

Definition at line 496 of file stl.hh.

References array_with_enum_index< Enum, T, S >::storage.

◆ operator[]() [1/2]

template<typename Enum , typename T , size_t S = size_t(-1)>
constexpr auto & array_with_enum_index< Enum, T, S >::operator[] ( Enum  e)
inlineconstexpr

Definition at line 491 of file stl.hh.

References array_with_enum_index< Enum, T, S >::storage, and to_underlying().

◆ operator[]() [2/2]

template<typename Enum , typename T , size_t S = size_t(-1)>
constexpr const auto & array_with_enum_index< Enum, T, S >::operator[] ( Enum  e) const
inlineconstexpr

Definition at line 490 of file stl.hh.

References array_with_enum_index< Enum, T, S >::storage, and to_underlying().

◆ size()

template<typename Enum , typename T , size_t S = size_t(-1)>
constexpr auto array_with_enum_index< Enum, T, S >::size ( ) const
inlineconstexpr

Definition at line 500 of file stl.hh.

References array_with_enum_index< Enum, T, S >::storage.

Friends And Related Symbol Documentation

◆ operator<=>

template<typename Enum , typename T , size_t S = size_t(-1)>
constexpr auto operator<=> ( const array_with_enum_index< Enum, T, S > &  x,
const array_with_enum_index< Enum, T, S > &  y 
)
friend

Member Data Documentation

◆ storage

template<typename Enum , typename T , size_t S = size_t(-1)>
std::array<T, get_size_helper()> array_with_enum_index< Enum, T, S >::storage

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