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

Traits for enum types. More...

Variables

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

Detailed Description

Traits for enum types.

These traits are used to determine if an enum type has enabled bitmask or arithmetic operations.