ALib C++ Library
Library Version: 2402 R1
Documentation generated by doxygen
Loading...
Searching...
No Matches
T_EnumIsArithmetical< TEnum, TEnableIf > Struct Template Reference

Description:

template<typename TEnum, typename TEnableIf>
struct alib::enums::T_EnumIsArithmetical< TEnum, TEnableIf >

Simple TMP struct 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 TMP struct T_EnumIsBitwise , this documentation "fakes" the operators into namespace alib::enums, 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.
TEnableIfThis parameter has a default expressions and must not be provided with specializations of this struct. It is used to ensure that template parameter TEnum is an enumeration type.

Definition at line 70 of file arithmetical.hpp.

#include <arithmetical.hpp>

Inheritance diagram for T_EnumIsArithmetical< TEnum, TEnableIf >:
[legend]
Collaboration diagram for T_EnumIsArithmetical< TEnum, TEnableIf >:
[legend]

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