wxMaxima
|
A wrapper for legacy enumerated types that can be stored in a type smaller than an int. More...
#include <EnumWrapper.h>
Public Member Functions | |
constexpr | EnumWrapper (Storage)=delete |
constexpr | EnumWrapper (Enum value) noexcept |
constexpr | operator Enum () const noexcept |
constexpr | operator Storage () const =delete |
constexpr std::size_t | hash () const |
constexpr bool | operator== (EnumWrapper o) const |
constexpr bool | operator== (Enum o) const |
constexpr bool | operator!= (EnumWrapper o) const |
constexpr bool | operator!= (Enum o) const |
A wrapper for legacy enumerated types that can be stored in a type smaller than an int.
This wrapper is meant for storage as a class member.