Home
last modified time | relevance | path

Searched refs:is_enum (Results 1 – 25 of 29) sorted by relevance

12

/external/protobuf/src/google/protobuf/stubs/
Dtype_traits_unittest.cc261 EXPECT_TRUE(is_enum<G>::value); in TEST()
262 EXPECT_TRUE(is_enum<const G>::value); in TEST()
263 EXPECT_TRUE(is_enum<volatile G>::value); in TEST()
264 EXPECT_TRUE(is_enum<const volatile G>::value); in TEST()
267 EXPECT_FALSE(is_enum<void>::value); in TEST()
268 EXPECT_FALSE(is_enum<G&>::value); in TEST()
269 EXPECT_FALSE(is_enum<G[1]>::value); in TEST()
270 EXPECT_FALSE(is_enum<const G[1]>::value); in TEST()
271 EXPECT_FALSE(is_enum<G[]>::value); in TEST()
272 EXPECT_FALSE(is_enum<int>::value); in TEST()
[all …]
Dtype_traits.h75 template <class T> struct is_enum;
179 template <class T> struct is_enum
188 template <class T> struct is_enum<const T> : is_enum<T> { };
189 template <class T> struct is_enum<volatile T> : is_enum<T> { };
190 template <class T> struct is_enum<const volatile T> : is_enum<T> { };
208 is_enum<T>::value ||
/external/clang/test/SemaCXX/
Dalias-template.cpp150 template<typename T> struct is_enum { static constexpr bool value = __is_enum(T); }; struct
155 template<typename T> EnableIf<is_enum<T>> f();
156 template<typename T> DisableIf<is_enum<T>> f();
165 template<typename T, typename U = EnableIf<is_enum<T>>> struct fail1 {}; // expected-note {{here}}
166 template<typename T> struct fail2 : DisableIf<is_enum<T>> {}; // expected-note {{here}}
/external/clang/test/Lexer/
Dhas_feature_type_traits.cpp73 #if __has_feature(is_enum)
74 int is_enum();
/external/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/
Dlvalue_ref.pass.cpp31 static_assert(!std::is_enum<T>::value, ""); in test_lvalue_ref()
Drvalue_ref.pass.cpp31 static_assert(!std::is_enum<T>::value, ""); in test_rvalue_ref()
Dfloating_point.pass.cpp31 static_assert(!std::is_enum<T>::value, ""); in test_floating_point_imp()
Dvoid.pass.cpp31 static_assert(!std::is_enum<T>::value, ""); in test_void_imp()
Dmember_object_pointer.pass.cpp31 static_assert(!std::is_enum<T>::value, ""); in test_member_object_pointer_imp()
Dclass.pass.cpp31 static_assert(!std::is_enum<T>::value, ""); in test_class_imp()
Dnullptr.pass.cpp31 static_assert(!std::is_enum<T>::value, ""); in test_nullptr_imp()
Denum.pass.cpp31 static_assert( std::is_enum<T>::value, ""); in test_enum_imp()
Dunion.pass.cpp31 static_assert(!std::is_enum<T>::value, ""); in test_union_imp()
Darray.pass.cpp31 static_assert(!std::is_enum<T>::value, ""); in test_array_imp()
Dpointer.pass.cpp31 static_assert(!std::is_enum<T>::value, ""); in test_pointer_imp()
Dintegral.pass.cpp31 static_assert(!std::is_enum<T>::value, ""); in test_integral_imp()
Dmember_function_pointer_no_variadics.pass.cpp32 static_assert(!std::is_enum<T>::value, ""); in test_member_function_pointer_imp()
Dfunction.pass.cpp42 static_assert(!std::is_enum<T>::value, ""); in test()
Dmember_function_pointer.pass.cpp32 static_assert(!std::is_enum<T>::value, ""); in test_member_function_pointer_imp()
/external/libweave/include/weave/
Denum_to_string.h25 static_assert(std::is_enum<T>::value, "The type must be an enumeration");
/external/libcxx/test/std/experimental/utilities/meta/meta.type.synop/
Dmeta.unary.cat.pass.cpp138 static_assert(ex::is_enum_v<T> == std::is_enum<T>::value, ""); in main()
143 static_assert(ex::is_enum_v<T> == std::is_enum<T>::value, ""); in main()
/external/libbrillo/brillo/
Dany_internal_impl.h29 (std::is_enum<From>::value && std::is_integral<To>::value)> {};
172 return std::is_integral<T>::value || std::is_enum<T>::value; in IsConvertibleToInteger()
/external/libcxx/include/experimental/
Dtype_traits46 = is_enum<T>::value;
228 = is_enum<_Tp>::value;
/external/libweave/third_party/chromium/base/
Dlogging.h149 typename std::enable_if<std::is_enum<T>::value, std::ostream&>::type operator<<(
/external/libcxx/include/
Dtype_traits45 template <class T> struct is_enum;
507 // is_enum
509 #if __has_feature(is_enum) || (_GNUC_VER >= 403)
511 template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY is_enum
516 template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY is_enum
550 is_enum<_Tp>::value > {};
1400 template <class _Tp, bool = is_integral<_Tp>::value || is_enum<_Tp>::value>
1433 template <class _Tp, bool = is_integral<_Tp>::value || is_enum<_Tp>::value>
3692 template <class _Tp, bool = std::is_enum<_Tp>::value>

12