Searched refs:enum_type (Results 1 – 2 of 2) sorted by relevance
51 return (enum_type) ~underlying(e);54 which we then cast to "enum_type". This cast is Undefined Behavior148 -/* Note that std::underlying_type<enum_type> is not what we want here,177 template <typename enum_type>179 - = std::is_unsigned<typename enum_underlying_type<enum_type>::type>;180 + = std::is_unsigned<typename std::underlying_type<enum_type>::type>;192 + the value and then cast the result to the enum_type. This is however213 +template <typename enum_type, typename = void>216 + static_assert(std::is_enum<enum_type>::value);219 +// Specialization that is active only if enum_type can be list-initialized[all …]
216 #define bpf_core_enum_value_exists(enum_type, enum_value) \ argument217 __builtin_preserve_enum_value(*(typeof(enum_type) *)enum_value, BPF_ENUMVAL_EXISTS)227 #define bpf_core_enum_value(enum_type, enum_value) \ argument228 __builtin_preserve_enum_value(*(typeof(enum_type) *)enum_value, BPF_ENUMVAL_VALUE)