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

Functions to enable typesafe operations for enum types. More...

Functions

auto stlab::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::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 stlab::adobe_enable_bitmask_enum (...) -> std::false_type
auto stlab::adobe_enable_arithmetic_enum (...) -> std::false_type

Detailed Description

Functions to enable typesafe operations for enum types.

These functions must be overloaded in your enum's namespace to enable the corresponding operations for your enum type.

Function Documentation

◆ adobe_enable_arithmetic_enum()

auto stlab::adobe_enable_arithmetic_enum ( ...) -> std::false_type
Note
Use is deprecated. Use stlab_enable_arithmetic_enum instead.

◆ adobe_enable_bitmask_enum()

auto stlab::adobe_enable_bitmask_enum ( ...) -> std::false_type
Note
Use is deprecated. Use stlab_enable_bitmask_enum instead.