ALib C++ Library
Library Version: 2312 R0
Documentation generated by doxygen
T_EnumIsArithmetical< TEnum, TEnableIf > Struct Template Reference

#include <arithmetical.hpp>

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

Class Description

template<typename TEnum, typename TEnableIf>
struct aworx::lib::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 aworx::lib::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 66 of file arithmetical.hpp.


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