Home
last modified time | relevance | path

Searched refs:has_trivial_constructor (Results 1 – 2 of 2) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/
Dtype_traits_unittest.cc121 template<> struct has_trivial_constructor<E> : true_type { }; struct
372 EXPECT_TRUE(has_trivial_constructor<bool>::value); in TEST()
373 EXPECT_TRUE(has_trivial_constructor<char>::value); in TEST()
374 EXPECT_TRUE(has_trivial_constructor<unsigned char>::value); in TEST()
375 EXPECT_TRUE(has_trivial_constructor<signed char>::value); in TEST()
376 EXPECT_TRUE(has_trivial_constructor<wchar_t>::value); in TEST()
377 EXPECT_TRUE(has_trivial_constructor<int>::value); in TEST()
378 EXPECT_TRUE(has_trivial_constructor<unsigned int>::value); in TEST()
379 EXPECT_TRUE(has_trivial_constructor<short>::value); in TEST()
380 EXPECT_TRUE(has_trivial_constructor<unsigned short>::value); in TEST()
[all …]
Dtype_traits.h99 template <class T> struct has_trivial_constructor;
248 template <class T> struct has_trivial_constructor : is_pod<T> { };
249 template <class T, class U> struct has_trivial_constructor<std::pair<T, U> >
251 (has_trivial_constructor<T>::value &&
252 has_trivial_constructor<U>::value)> { };
253 template <class A, int N> struct has_trivial_constructor<A[N]>
254 : has_trivial_constructor<A> { };
255 template <class T> struct has_trivial_constructor<const T>
256 : has_trivial_constructor<T> { };