ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
T_EnumIsBitwise< TEnum, TEnableIf > Struct Template Reference

Description:

template<typename TEnum, typename TEnableIf>
struct alib::enums::T_EnumIsBitwise< 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_EnumIsArithmetical, 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.

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.

Reference Documentation

Template Parameters
TEnumThe enum type to enable bitwise 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 91 of file bitwise.hpp.

#include <bitwise.hpp>

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

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