stlab-enum-ops 1.0.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
auto stlab_enable_arithmetic_enum (...) -> std::false_type

Detailed Description

The stlab namespace.

Function Documentation

◆ stlab_enable_arithmetic_enum()

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.

◆ stlab_enable_bitmask_enum()

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.