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

Description:

template<typename TEnum>
requires std::is_enum<TEnum>::value
struct alib::enumrecords::RecordsTraits< TEnum >

This type trait is used to associate an "ALib Enum Record" type to a (scoped or non-scoped) enumeration type.

In the non-specialized version type definition Type (the only entity of this struct) evaluates to void. To assign a record, specify a data record type, similar to what is prototyped with EnumRecordPrototype

See also
Please consult chapter 4. Enum Records of the Programmer's Manual of ALib EnumRecords for detailed documentation and sample code on this struct and
Macro ALIB_ENUMS_ASSIGN_RECORD offers a well readable alternative to specialize this struct for an enum type.
Template Parameters
TEnumThe enumeration type this struct applies to.

Definition at line 35 of file records.inl.

Public Type Index:

using Type = void
 The data type associated with elements of TEnum.
 

Type Definition Details:

◆ Type

template<typename TEnum>
using alib::enumrecords::RecordsTraits< TEnum >::Type = void

The data type associated with elements of TEnum.

Definition at line 38 of file records.inl.


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