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

Method bool

include/magic_enum/magic_enum_containers.hpp:530–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528 }
529
530 [[nodiscard]] constexpr operator bool() const noexcept { return (parent->a[num_index] & bit_index) > 0; }
531
532 [[nodiscard]] constexpr bool operator~() const noexcept { return !static_cast<bool>(*this); }
533

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected