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

Enum AnimalFlags

example/enum_flag_example.cpp:29–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#include <magic_enum/magic_enum_iostream.hpp>
28
29enum class AnimalFlags : std::uint64_t { HasClaws = 1 << 10, CanFly = 1 << 20, EatsFish = 1 << 30, Endangered = std::uint64_t{1} << 40 };
30// Add specialization `is_flags` to define that enum are flags.
31template <>
32struct magic_enum::customize::enum_range<AnimalFlags> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected