cpp-mate  0.7
Helpful library for C++.
CppMate::EnumBitOps::Extra Namespace Reference

Functions

template<typename T >
constexpr std::underlying_type< T >::type operator* (T operand) noexcept
 operator * to return underlying type of enum. More...
 
template<typename T >
constexpr T operator- (T lhs, typename std::underlying_type< T >::type rhs) noexcept
 operator - between enum and underlying type. More...
 
template<typename T >
constexpr T operator<< (typename std::underlying_type< T >::type lhs, T rhs) noexcept
 operator << between underlying type and enum types. More...
 
template<typename T >
constexpr bool operator== (const T &lhs, const typename std::underlying_type< T >::type &rhs)
 operator == between enum and underlying type. More...
 
template<typename T >
constexpr bool operator!= (const T &lhs, const typename std::underlying_type< T >::type &rhs)
 operator != between enum and underlying type. More...
 

Function Documentation

◆ operator!=()

template<typename T >
constexpr bool CppMate::EnumBitOps::Extra::operator!= ( const T &  lhs,
const typename std::underlying_type< T >::type &  rhs 
)
inlineconstexpr

operator != between enum and underlying type.

Parameters
lhsleft-hand side operand.
rhsright-hand side operand.
Returns
result of the operation.

◆ operator*()

template<typename T >
constexpr std::underlying_type<T>::type CppMate::EnumBitOps::Extra::operator* ( operand)
inlineconstexprnoexcept

operator * to return underlying type of enum.

Parameters
operandenum operand.
Returns
underlying type.

◆ operator-()

template<typename T >
constexpr T CppMate::EnumBitOps::Extra::operator- ( lhs,
typename std::underlying_type< T >::type  rhs 
)
inlineconstexprnoexcept

operator - between enum and underlying type.

Parameters
lhsleft-hand side operand.
rhsright-hand side operand.
Returns
result of the operation.

◆ operator<<()

template<typename T >
constexpr T CppMate::EnumBitOps::Extra::operator<< ( typename std::underlying_type< T >::type  lhs,
rhs 
)
inlineconstexprnoexcept

operator << between underlying type and enum types.

Parameters
lhsleft-hand side operand.
rhsright-hand side operand.
Returns
result of the operation.

◆ operator==()

template<typename T >
constexpr bool CppMate::EnumBitOps::Extra::operator== ( const T &  lhs,
const typename std::underlying_type< T >::type &  rhs 
)
inlineconstexpr

operator == between enum and underlying type.

Parameters
lhsleft-hand side operand.
rhsright-hand side operand.
Returns
result of the operation.