gz/common/FlagSet.hh File Reference
#include <bitset>#include <iostream>#include <cassert>#include <string>#include <gz/common/config.hh>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< ignition::common::FlagSet< T, LastElement, ExcludeLast > > |
| struct | IsEnumThatContainsSentinel< T, typename > |
| struct | IsEnumThatContainsSentinel< T, decltype(static_cast< void >(T::_))> |
Namespaces | |
| ignition | |
| Forward declarations for the common classes. | |
| ignition::common | |
| std | |
| STL namespace. | |
Functions | |
| template<typename T > | |
| std::enable_if_t< ignition::common::IsEnumThatContainsSentinel< T >::value, ignition::common::FlagSet< T >> | operator| (const T &_lhs, const T &_rhs) |
Function Documentation
◆ operator|()
| std::enable_if_t< ignition::common::IsEnumThatContainsSentinel<T>::value, ignition::common::FlagSet<T>> operator| | ( | const T & | _lhs, |
| const T & | _rhs | ||
| ) |