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

Description:

template<typename TEnum>
requires std::is_enum<TEnum>::value
struct alib::enumops::ArithmeticalTraits< TEnum >

A simple type trait that inherits std::false_type by default. If specialized for an enumeration type TEnum to inherit std::true_type, the following operators set of ALib operators become applicable to elements of TEnum:

Attention
Likewise with the operators introduced with the type trait BitwiseTraits, this documentation "fakes" the operators into namespace alib::enumops, while in fact they are defined in the global namespace!
See corresponding note in the Programmer's Manual for details.

Restrictions
For technical reasons, this concept is not applicable to enum types that are defined as private or protected inner types of structs or classes.

See also
Template Parameters
TEnumThe enum type to enable arithmetical operators for.

Definition at line 53 of file arithmetical.inl.

Inheritance diagram for alib::enumops::ArithmeticalTraits< TEnum >:
[legend]
Collaboration diagram for alib::enumops::ArithmeticalTraits< TEnum >:
[legend]

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