MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / enum_bit_not

Function enum_bit_not

3rdparty/cppzmq/zmq.hpp:1023–1028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1021 return static_cast<T>(static_cast<U>(a) ^ static_cast<U>(b));
1022}
1023template<class T> constexpr T enum_bit_not(T a) noexcept
1024{
1025 static_assert(std::is_enum<T>::value, "must be enum");
1026 using U = typename std::underlying_type<T>::type;
1027 return static_cast<T>(~static_cast<U>(a));
1028}
1029} // namespace detail
1030
1031// partially satisfies named requirement BitmaskType

Callers 1

operator~Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected