MCPcopy Create free account
hub / github.com/Neargye/magic_enum / enum_flags_contains

Function enum_flags_contains

include/magic_enum/magic_enum_flags.hpp:171–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169// Returns true if enum-flags contains value with such value.
170template <typename E>
171[[nodiscard]] constexpr auto enum_flags_contains(E value) noexcept -> detail::enable_if_t<E, bool> {
172 using D = std::decay_t<E>;
173 using U = underlying_type_t<D>;
174
175 return static_cast<bool>(enum_flags_cast<D>(static_cast<U>(value)));
176}
177
178// Returns true if enum-flags contains value with such integer value.
179template <typename E>

Callers 1

test_flags.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected