![]() |
ToyGine2 26.2.0
Game Engine for retro consoles
|
Inline implementations for toy::EnableBitwiseOperators and scoped-enum bitwise operators. More...
Go to the source code of this file.
Namespaces | |
| namespace | toy |
| Root namespace containing all engine modules. | |
Functions | |
| template<typename T> | |
| constexpr T | toy::operator| (T lhs, T rhs) noexcept |
| Computes bitwise OR on the underlying integers, then casts back to T. | |
| template<typename T> | |
| constexpr T | toy::operator& (T lhs, T rhs) noexcept |
| Computes bitwise AND on the underlying integers, then casts back to T. | |
| template<typename T> | |
| constexpr T | toy::operator^ (T lhs, T rhs) noexcept |
| Computes bitwise XOR on the underlying integers, then casts back to T. | |
| template<typename T> | |
| constexpr T | toy::operator~ (T lhs) noexcept |
| Computes bitwise NOT of the underlying integer, then casts back to T. | |
| template<typename T> | |
| constexpr T & | toy::operator|= (T &lhs, T rhs) noexcept |
| Compound OR: lhs becomes lhs | rhs. | |
| template<typename T> | |
| constexpr T & | toy::operator&= (T &lhs, T rhs) noexcept |
| Compound AND: lhs becomes lhs & rhs. | |
| template<typename T> | |
| constexpr T & | toy::operator^= (T &lhs, T rhs) noexcept |
| Compound XOR: lhs becomes lhs ^ rhs. | |
Inline implementations for toy::EnableBitwiseOperators and scoped-enum bitwise operators.