Ignition Common

API Reference

4.4.0
FlagSet.hh File Reference
#include <bitset>
#include <iostream>
#include <cassert>
#include <string>

Go to the source code of this file.

Classes

class  FlagSet< T, LastElement, ExcludeLast >
 Set of flags defined by a C++11 enum class. More...
 
struct  hash< FlagSet< T, LastElement, ExcludeLast > >
 
struct  IsEnumThatContainsSentinel< T, typename >
 
struct  IsEnumThatContainsSentinel< T, decltype(static_cast< void >(T::_))>
 

Namespaces

 ignition::common
 
 std
 STL namespace.
 

Functions

template<typename T >
std::enable_if_t< IsEnumThatContainsSentinel< T >::value, FlagSet< T >> operator| (const T &_lhs, const T &_rhs)
 

Function Documentation

◆ operator|()

std::enable_if_t< IsEnumThatContainsSentinel<T>::value, FlagSet<T>> operator| ( const T &  _lhs,
const T &  _rhs 
)