stlab-enum-ops 1.1.0
Type-safe operators for enums
Loading...
Searching...
No Matches
stlab Namespace Reference

The stlab namespace. More...

Functions

auto stlab_enable_bitmask_enum (...) -> std::false_type
 Overload this for your enum in the enum namespace to return std::true_type and enable bitwise operators.
auto stlab_enable_arithmetic_enum (...) -> std::false_type
 Overload this for your enum in the enum namespace to return std::true_type and enable arithmetic operators.
auto adobe_enable_bitmask_enum (...) -> std::false_type
auto adobe_enable_arithmetic_enum (...) -> std::false_type

Variables

template<class T>
constexpr bool has_enabled_bitmask
 Whether the enum type has enabled bitmask operations.
template<class T>
constexpr bool has_enabled_arithmetic
 Whether the enum type has enabled arithmetic operations.
template<class U, class T>
constexpr bool is_compatible_scalar
 Whether the scalar type U is compatible with the enum type T.

Detailed Description

The stlab namespace.