C++ Utilities 5.26.1
Useful C++ classes and routines such as argument parser, IO and conversion utilities
Loading...
Searching...
No Matches
CppUtilities::FlagEnumClassOperations Namespace Reference

The FlagEnumClassOperations namespace contains operations for flag enums. More...

Functions

template<typename FlagEnumClass , Traits::EnableIf< IsFlagEnumClass< FlagEnumClass > > * = nullptr>
constexpr FlagEnumClass operator| (FlagEnumClass lhs, FlagEnumClass rhs)
 
template<typename FlagEnumClass , Traits::EnableIf< IsFlagEnumClass< FlagEnumClass > > * = nullptr>
constexpr bool operator& (FlagEnumClass lhs, FlagEnumClass rhs)
 
template<typename FlagEnumClass , Traits::EnableIf< IsFlagEnumClass< FlagEnumClass > > * = nullptr>
constexpr FlagEnumClass & operator|= (FlagEnumClass &lhs, FlagEnumClass rhs)
 
template<typename FlagEnumClass , Traits::EnableIf< IsFlagEnumClass< FlagEnumClass > > * = nullptr>
constexpr FlagEnumClass & operator+= (FlagEnumClass &lhs, FlagEnumClass rhs)
 
template<typename FlagEnumClass , Traits::EnableIf< IsFlagEnumClass< FlagEnumClass > > * = nullptr>
constexpr FlagEnumClass & operator-= (FlagEnumClass &lhs, FlagEnumClass rhs)
 

Detailed Description

The FlagEnumClassOperations namespace contains operations for flag enums.

Function Documentation

◆ operator&()

template<typename FlagEnumClass , Traits::EnableIf< IsFlagEnumClass< FlagEnumClass > > * = nullptr>
bool CppUtilities::FlagEnumClassOperations::operator& ( FlagEnumClass lhs,
FlagEnumClass rhs )
constexpr

Definition at line 45 of file flagenumclass.h.

◆ operator+=()

template<typename FlagEnumClass , Traits::EnableIf< IsFlagEnumClass< FlagEnumClass > > * = nullptr>
FlagEnumClass & CppUtilities::FlagEnumClassOperations::operator+= ( FlagEnumClass & lhs,
FlagEnumClass rhs )
constexpr

Definition at line 59 of file flagenumclass.h.

◆ operator-=()

template<typename FlagEnumClass , Traits::EnableIf< IsFlagEnumClass< FlagEnumClass > > * = nullptr>
FlagEnumClass & CppUtilities::FlagEnumClassOperations::operator-= ( FlagEnumClass & lhs,
FlagEnumClass rhs )
constexpr

Definition at line 66 of file flagenumclass.h.

◆ operator|()

template<typename FlagEnumClass , Traits::EnableIf< IsFlagEnumClass< FlagEnumClass > > * = nullptr>
FlagEnumClass CppUtilities::FlagEnumClassOperations::operator| ( FlagEnumClass lhs,
FlagEnumClass rhs )
constexpr

Definition at line 38 of file flagenumclass.h.

◆ operator|=()

template<typename FlagEnumClass , Traits::EnableIf< IsFlagEnumClass< FlagEnumClass > > * = nullptr>
FlagEnumClass & CppUtilities::FlagEnumClassOperations::operator|= ( FlagEnumClass & lhs,
FlagEnumClass rhs )
constexpr

Definition at line 52 of file flagenumclass.h.