![]() |
ToyGine2 26.2.0
Game Engine for retro consoles
|
Primary template: disables generic bitwise operators for T unless specialized. More...
Static Public Attributes | |
| static constexpr bool | enable = false |
When true, the bitwise operator overloads in this header apply to T. The primary template sets false. | |
Primary template: disables generic bitwise operators for T unless specialized.
Specialize (manually or with ENABLE_BITWISE_OPERATORS(T)) so that enable is true for a given scoped enum. The generic operator overloads in this header are only instantiated when EnableBitwiseOperators<T>::enable is true.
| T | Scoped enumeration type (enum class). |
ENABLE_BITWISE_OPERATORS).Each operation is a short inline forwarding to one or two integer operations; complexity is O(1) per call with no heap use.
|
staticconstexpr |
When true, the bitwise operator overloads in this header apply to T. The primary template sets false.