Corrade/Containers/EnumSet.h file

Class Corrade::Containers::EnumSet, macro CORRADE_ENUMSET_OPERATORS(), CORRADE_ENUMSET_FRIEND_OPERATORS()

Namespaces

namespace Corrade
Root namespace.
namespace Corrade::Containers
Container implementations.

Classes

template<class T, typename std::underlying_type<T>::type fullValue = typename std::underlying_type<T>::type(~0)>
class Corrade::Containers::EnumSet
Set of enum values.

Functions

template<class T, class = typename std::enable_if<std::is_enum<T>::value>::type>
auto enumCastUnderlyingType(T value) -> std::underlying_type<T>::type constexpr new in 2020.06
Cast an enum to its underlying type.
template<class T, typename std::underlying_type<T>::type fullValue>
auto enumCastUnderlyingType(EnumSet<T, fullValue> value) -> std::underlying_type<T>::type constexpr new in 2020.06
Cast an enum set to its underlying type.

Defines

#define CORRADE_ENUMSET_OPERATORS(class)
Define out-of-class operators for given EnumSet or BigEnumSet.
#define CORRADE_ENUMSET_FRIEND_OPERATORS(class)
Define out-of-class operators for given EnumSet or BigEnumSet as friends of encapsulating class.

Define documentation

#define CORRADE_ENUMSET_OPERATORS(class)

Define out-of-class operators for given EnumSet or BigEnumSet.

See the EnumSet class documentation for example usage.

#define CORRADE_ENUMSET_FRIEND_OPERATORS(class)

Define out-of-class operators for given EnumSet or BigEnumSet as friends of encapsulating class.

See the EnumSet class documentation for example usage.