Home
last modified time | relevance | path

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

123

/external/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/
Dis_enum.pass.cpp21 static_assert( std::is_enum<T>::value, ""); in test_is_enum()
22 static_assert( std::is_enum<const T>::value, ""); in test_is_enum()
23 static_assert( std::is_enum<volatile T>::value, ""); in test_is_enum()
24 static_assert( std::is_enum<const volatile T>::value, ""); in test_is_enum()
36 static_assert(!std::is_enum<T>::value, ""); in test_is_not_enum()
37 static_assert(!std::is_enum<const T>::value, ""); in test_is_not_enum()
38 static_assert(!std::is_enum<volatile T>::value, ""); in test_is_not_enum()
39 static_assert(!std::is_enum<const volatile T>::value, ""); in test_is_not_enum()
Denum.pass.cpp32 static_assert( std::is_enum<T>::value, ""); in test_enum_imp()
55 static_assert(!std::is_enum<incomplete_type>::value, ""); in main()
Drvalue_ref.pass.cpp34 static_assert(!std::is_enum<T>::value, ""); in test_rvalue_ref()
Dlvalue_ref.pass.cpp33 static_assert(!std::is_enum<T>::value, ""); in test_lvalue_ref()
Dunion.pass.cpp32 static_assert(!std::is_enum<T>::value, ""); in test_union_imp()
Dnullptr.pass.cpp33 static_assert(!std::is_enum<T>::value, ""); in test_nullptr_imp()
/external/libchrome/base/metrics/
Dhistogram_macros_internal.h42 std::enable_if_t<std::is_enum<decltype(Enum::kMaxValue)>::value>> {
148 static_assert(!std::is_enum<decltype(sample)>::value, \
150 static_assert(!std::is_enum<decltype(boundary)>::value, \
164 static_assert(!std::is_enum<decltype(sample)>::value, \
166 static_assert(!std::is_enum<decltype(boundary)>::value, \
211 static_assert(!std::is_enum<decayed_boundary>::value || \
212 std::is_enum<decayed_sample>::value, \
214 static_assert(!std::is_enum<decayed_sample>::value || \
215 !std::is_enum<decayed_boundary>::value || \
232 static_assert(std::is_enum<decayed_sample>::value, \
Dhistogram_functions.h54 static_assert(std::is_enum<T>::value, in UmaHistogramEnumeration()
66 static_assert(std::is_enum<T>::value, in UmaHistogramEnumeration()
/external/protobuf/src/google/protobuf/stubs/
Dtype_traits_unittest.cc264 EXPECT_TRUE(is_enum<G>::value); in TEST()
265 EXPECT_TRUE(is_enum<const G>::value); in TEST()
266 EXPECT_TRUE(is_enum<volatile G>::value); in TEST()
267 EXPECT_TRUE(is_enum<const volatile G>::value); in TEST()
270 EXPECT_FALSE(is_enum<void>::value); in TEST()
271 EXPECT_FALSE(is_enum<G&>::value); in TEST()
272 EXPECT_FALSE(is_enum<G[1]>::value); in TEST()
273 EXPECT_FALSE(is_enum<const G[1]>::value); in TEST()
274 EXPECT_FALSE(is_enum<G[]>::value); in TEST()
275 EXPECT_FALSE(is_enum<int>::value); in TEST()
[all …]
Dtype_traits.h95 template <class T> struct is_enum;
206 template <class T> struct is_enum
215 template <class T> struct is_enum<const T> : is_enum<T> { };
216 template <class T> struct is_enum<volatile T> : is_enum<T> { };
217 template <class T> struct is_enum<const volatile T> : is_enum<T> { };
235 is_enum<T>::value ||
/external/clang/test/SemaCXX/
Dalias-template.cpp150 template<typename T> struct is_enum { static constexpr bool value = __is_enum(T); }; argument
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/skia/include/private/
DSkTFitsIn.h24 struct sk_strip_enum<T, typename std::enable_if<std::is_enum<T>::value>::type> {
71 typename std::enable_if<(std::is_integral<S>::value || std::is_enum<S>::value) &&
72 (std::is_integral<D>::value || std::is_enum<D>::value), bool>::type
/external/skqp/include/private/
DSkTFitsIn.h56 typename std::enable_if<(std::is_integral<S>::value || std::is_enum<S>::value) &&
57 (std::is_integral<D>::value || std::is_enum<D>::value), bool>::type
/external/clang/test/Lexer/
Dhas_feature_type_traits.cpp73 #if __has_feature(is_enum)
74 int is_enum();
/external/v8/src/base/
Dlogging.h130 typename std::enable_if<std::is_enum<T>::value &&
145 !std::is_enum<T>::value>::type
207 static constexpr bool is_enum = std::is_enum<decay>::value; member
209 typename std::conditional<is_enum, decay, Dummy>::type>::type;
211 typename std::conditional<is_enum, underlying, decay>::type;
/external/libchrome/mojo/public/cpp/bindings/lib/
Dbindings_internal.h214 template <typename T, bool is_enum = std::is_enum<T>::value>
314 static_assert(std::is_enum<T>::value, "Incorrect hash function.");
/external/vulkan-validation-layers/layers/
Dhash_util.h44 size_t HashWithUnderlying(Value value, typename std::enable_if<!std::is_enum<Value>::value, void *>…
49 size_t HashWithUnderlying(Value value, typename std::enable_if<std::is_enum<Value>::value, void *>:…
/external/libcxx/test/std/input.output/filesystems/fs.enum/
Denum.path.format.pass.cpp25 static_assert(std::is_enum<E>::value, ""); in main()
Denum.directory_options.pass.cpp29 static_assert(std::is_enum<E>::value, ""); in main()
Denum.perm_options.pass.cpp31 static_assert(std::is_enum<E>::value, ""); in main()
Denum.file_type.pass.cpp27 static_assert(std::is_enum<E>::value, ""); in main()
Denum.copy_options.pass.cpp28 static_assert(std::is_enum<E>::value, ""); in main()
/external/libcxx/test/libcxx/utilities/memory/util.dynamic.safety/
Dget_pointer_safety_new_abi.pass.cpp25 static_assert(std::is_enum<std::pointer_safety>::value, ""); in main()
/external/libcxx/test/std/language.support/support.dynamic/
Dalign_val_t.pass.cpp20 static_assert(std::is_enum<std::align_val_t>::value, ""); in main()
/external/libcxx/test/std/utilities/meta/meta.type.synop/
Dendian.pass.cpp22 static_assert(std::is_enum<std::endian>::value, ""); in main()

123