ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::enumrecords::bootstrap::Initializer< TEnum > Struct Template Reference

Description:

template<typename TEnum>
requires enumrecords::HasRecords<TEnum>
struct alib::enumrecords::bootstrap::Initializer< TEnum >

Helper-struct used with bulk-initialization function Bootstrap(std::initializer_list).

Template Parameters
TEnumThe enum type to define records for.

Definition at line 18 of file recordbootstrap.inl.

Public Type Index:

using TRecord = typename RecordsTraits<TEnum>::Type
 The enum's associated record type.
 

Public Field Index:

TEnum element
 The enumeration element.
 
TRecord record
 The static data record.
 

Public Method Index:

template<typename... TArgs>
 Initializer (TEnum elem, TArgs &&... args) noexcept
 

Type Definition Details:

◆ TRecord

template<typename TEnum>
using alib::enumrecords::bootstrap::Initializer< TEnum >::TRecord = typename RecordsTraits<TEnum>::Type

The enum's associated record type.

Definition at line 20 of file recordbootstrap.inl.

Field Details:

◆ element

template<typename TEnum>
TEnum alib::enumrecords::bootstrap::Initializer< TEnum >::element

The enumeration element.

Definition at line 23 of file recordbootstrap.inl.

◆ record

template<typename TEnum>
TRecord alib::enumrecords::bootstrap::Initializer< TEnum >::record

The static data record.

Definition at line 26 of file recordbootstrap.inl.

Constructor(s) / Destructor Details:

◆ Initializer()

template<typename TEnum>
template<typename... TArgs>
alib::enumrecords::bootstrap::Initializer< TEnum >::Initializer ( TEnum elem,
TArgs &&... args )
inlinenoexcept

Constructor taking variadic template arguments to construct the record.

Template Parameters
TArgsTypes of the variadic arguments args.
Parameters
elemThe enum element.
argsVariadic arguments forwarded to constructor of field record.

Definition at line 34 of file recordbootstrap.inl.


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