DiFfRG
|
A class to store a tuple with elements that can be accessed by name. The names are stored as FixedString objects and their lookup is done at compile time. More...
#include <tuples.hh>
Public Member Functions | |
constexpr | operator tuple_type & () |
named_tuple (tuple_type &&t) | |
named_tuple (tuple_type &t) | |
template<size_t idx> | |
auto & | get () |
template<size_t idx> | |
const auto & | get () const |
Static Public Member Functions | |
template<typename... T> | |
static constexpr auto | as (std::tuple< T... > &&tup) |
template<typename... T> | |
static constexpr auto | as (std::tuple< T... > &tup) |
static consteval size_t | get_idx (const char *name) |
Public Attributes | |
tuple_type | tuple |
Static Public Attributes | |
static constexpr size_t | size = sizeof...(strs) |
static constexpr std::array< const char *, size > | names {{strs...}} |
A class to store a tuple with elements that can be accessed by name. The names are stored as FixedString objects and their lookup is done at compile time.
tuple_type | The type of the underlying tuple. |
strs | The names of the elements in the tuple. |
|
inline |
|
inline |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inline |
|
inline |
|
inlinestaticconsteval |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
tuple_type DiFfRG::named_tuple< tuple_type, strs >::tuple |