ToyGine2 26.2.0
Game Engine for retro consoles
Loading...
Searching...
No Matches
bitwise_enum.inl File Reference

Inline implementations for toy::EnableBitwiseOperators and scoped-enum bitwise operators. More...

This graph shows which files directly or indirectly include this file:

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.

Detailed Description

Inline implementations for toy::EnableBitwiseOperators and scoped-enum bitwise operators.

Note
Included by core.hpp only; do not include this file directly.