/external/protobuf/src/google/protobuf/stubs/ |
D | type_traits_unittest.cc | 261 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 …]
|
D | type_traits.h | 75 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/ |
D | alias-template.cpp | 150 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/ |
D | has_feature_type_traits.cpp | 73 #if __has_feature(is_enum) 74 int is_enum();
|
/external/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/ |
D | lvalue_ref.pass.cpp | 31 static_assert(!std::is_enum<T>::value, ""); in test_lvalue_ref()
|
D | rvalue_ref.pass.cpp | 31 static_assert(!std::is_enum<T>::value, ""); in test_rvalue_ref()
|
D | floating_point.pass.cpp | 31 static_assert(!std::is_enum<T>::value, ""); in test_floating_point_imp()
|
D | void.pass.cpp | 31 static_assert(!std::is_enum<T>::value, ""); in test_void_imp()
|
D | member_object_pointer.pass.cpp | 31 static_assert(!std::is_enum<T>::value, ""); in test_member_object_pointer_imp()
|
D | class.pass.cpp | 31 static_assert(!std::is_enum<T>::value, ""); in test_class_imp()
|
D | nullptr.pass.cpp | 31 static_assert(!std::is_enum<T>::value, ""); in test_nullptr_imp()
|
D | enum.pass.cpp | 31 static_assert( std::is_enum<T>::value, ""); in test_enum_imp()
|
D | union.pass.cpp | 31 static_assert(!std::is_enum<T>::value, ""); in test_union_imp()
|
D | array.pass.cpp | 31 static_assert(!std::is_enum<T>::value, ""); in test_array_imp()
|
D | pointer.pass.cpp | 31 static_assert(!std::is_enum<T>::value, ""); in test_pointer_imp()
|
D | integral.pass.cpp | 31 static_assert(!std::is_enum<T>::value, ""); in test_integral_imp()
|
D | member_function_pointer_no_variadics.pass.cpp | 32 static_assert(!std::is_enum<T>::value, ""); in test_member_function_pointer_imp()
|
D | function.pass.cpp | 42 static_assert(!std::is_enum<T>::value, ""); in test()
|
D | member_function_pointer.pass.cpp | 32 static_assert(!std::is_enum<T>::value, ""); in test_member_function_pointer_imp()
|
/external/libweave/include/weave/ |
D | enum_to_string.h | 25 static_assert(std::is_enum<T>::value, "The type must be an enumeration");
|
/external/libcxx/test/std/experimental/utilities/meta/meta.type.synop/ |
D | meta.unary.cat.pass.cpp | 138 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/ |
D | any_internal_impl.h | 29 (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/ |
D | type_traits | 46 = is_enum<T>::value; 228 = is_enum<_Tp>::value;
|
/external/libweave/third_party/chromium/base/ |
D | logging.h | 149 typename std::enable_if<std::is_enum<T>::value, std::ostream&>::type operator<<(
|
/external/libcxx/include/ |
D | type_traits | 45 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>
|