/external/clang/test/SemaCXX/ |
windows-arm-valist.cpp | 7 struct is_same { enum { value = 0 }; }; struct 10 struct is_same<type_, type_> { enum { value = 1 }; }; struct 15 static_assert(is_same<decltype(va), decltype(cp)>::value,
|
decltype-this.cpp | 4 template<typename T, typename U> struct is_same { struct 8 template<typename T> struct is_same<T, T> { struct 13 void f() { static_assert(is_same<decltype(this), S*>::value, ""); } 14 void g() const { static_assert(is_same<decltype(this), const S*>::value, ""); } 15 void h() volatile { static_assert(is_same<decltype(this), volatile S*>::value, ""); } 16 void i() const volatile { static_assert(is_same<decltype(this), const volatile S*>::value, ""); }
|
delete-and-function-templates.cpp | 6 template<class T, class U> struct is_same { enum { value = false }; }; struct 7 template<class T> struct is_same<T, T> { enum { value = true }; }; struct 15 static_assert(is_same<decltype(f(3)),char>::value, ""); //expected-error{{call to deleted function}} expected-error{{static_assert failed}}
|
cxx1z-lambda-star-this.cpp | 6 template<class, class> constexpr bool is_same = false;
variable 7 template<class T> constexpr bool is_same<T, T> = true;
variable 86 static_assert(is_same<decltype(this), X*>);
89 static_assert(is_same<decltype(this), X*>);
92 static_assert(is_same<decltype(this), X*>);
98 static_assert(is_same<decltype(this), const X*>);
100 static_assert(is_same<decltype(this), const X*>);
102 static_assert(is_same<decltype(this), const X*>);
106 static_assert(is_same<decltype(this), X*>);
108 static_assert(is_same<decltype(this), X*>); [all...] |
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/ |
p4-cxx0x.cpp | 4 struct is_same { struct 9 struct is_same<T, T> { struct 18 static_assert(is_same<decltype(foo()), const int&&>::value, ""); 19 static_assert(is_same<decltype(i), int>::value, ""); 20 static_assert(is_same<decltype(a->x), double>::value, ""); 21 static_assert(is_same<decltype((a->x)), const double&>::value, ""); 22 static_assert(is_same<decltype(static_cast<int&&>(i)), int&&>::value, "");
|
p5-cxx0x.cpp | 74 template<typename T, typename U> struct is_same { static const bool value = false; }; struct in namespace:libcxx_example 75 template<typename T> struct is_same<T, T> { static const bool value = true; }; struct in namespace:libcxx_example 84 static const bool value = !is_same<type, nat>::value;
|
/external/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/ |
p14.cpp | 6 template<typename T, typename U> struct is_same { struct 10 template<typename T> struct is_same<T, T> { struct
|
/external/clang/test/Headers/ |
arm64-apple-ios-types.cpp | 12 template <class _Tp, class _Up> struct is_same : public false_type {}; struct in inherits:false_type 13 template <class _Tp> struct is_same<_Tp, _Tp> : public true_type {}; struct in inherits:true_type 15 // Check that our 'is_same' works. 16 static_assert(is_same<char, char>::value, "is_same is broken"); 17 static_assert(!is_same<char, char *>::value, "is_same is broken"); 73 static_assert(is_same<long int, ::ptrdiff_t>::value, "::ptrdiff_t is wrong"); 74 static_assert(is_same<decltype(sizeof(char)), ::size_t>::value, "::size_t is wrong"); 75 static_assert(is_same<long unsigned int, ::size_t>::value, "::size_t is wrong") [all...] |
thumbv7-apple-ios-types.cpp | 12 template <class _Tp, class _Up> struct is_same : public false_type {}; struct in inherits:false_type 13 template <class _Tp> struct is_same<_Tp, _Tp> : public true_type {}; struct in inherits:true_type 15 // Check that our 'is_same' works. 16 static_assert(is_same<char, char>::value, "is_same is broken"); 17 static_assert(!is_same<char, char *>::value, "is_same is broken"); 73 static_assert(is_same<int, ::ptrdiff_t>::value, "::ptrdiff_t is wrong"); 74 static_assert(is_same<decltype(sizeof(char)), ::size_t>::value, "::size_t is wrong"); 75 static_assert(is_same<long unsigned int, ::size_t>::value, "::size_t is wrong") [all...] |
x86_64-apple-macosx-types.cpp | 12 template <class _Tp, class _Up> struct is_same : public false_type {}; struct in inherits:false_type 13 template <class _Tp> struct is_same<_Tp, _Tp> : public true_type {}; struct in inherits:true_type 15 // Check that our 'is_same' works. 16 static_assert(is_same<char, char>::value, "is_same is broken"); 17 static_assert(!is_same<char, char *>::value, "is_same is broken"); 73 static_assert(is_same<long int, ::ptrdiff_t>::value, "::ptrdiff_t is wrong"); 74 static_assert(is_same<decltype(sizeof(char)), ::size_t>::value, "::size_t is wrong"); 75 static_assert(is_same<long unsigned int, ::size_t>::value, "::size_t is wrong") [all...] |
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/ |
p18.cpp | 5 struct is_same { struct 10 struct is_same<T, T> { struct 21 static_assert(is_same<decltype(((r))), float const&>::value, 23 static_assert(is_same<decltype(x), float>::value, "should be float"); 24 static_assert(is_same<decltype((x)), const float&>::value, 26 static_assert(is_same<decltype(r), float&>::value, "should be float&"); 27 static_assert(is_same<decltype(ir), int&>::value, "should be int&"); 28 static_assert(is_same<decltype((ir)), int&>::value, "should be int&"); 29 static_assert(is_same<decltype(irc), const int&>::value, 31 static_assert(is_same<decltype((irc)), const int&>::value, [all...] |
/external/clang/test/CXX/temp/temp.fct.spec/temp.arg.explicit/ |
p3-nodeduct.cpp | 20 struct is_same { struct 25 struct is_same<T, T> { struct 29 int typeof0[is_same<__typeof__(f<int>), void (int)>::value? 1 : -1]; 30 int typeof1[is_same<__typeof__(&f<int>), void (*)(int)>::value? 1 : -1]; 35 int typeof2[is_same<__typeof__(g<float>), void (int)>::value? 1 : -1]; // \
|
/external/clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/ |
p6-0x.cpp | 4 struct is_same { struct 9 struct is_same<T, T> { struct 15 int JOIN(array,__LINE__)[is_same<T1, T2>::value? 1 : -1]
|
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/ |
p9-0x.cpp | 7 struct is_same { struct 12 struct is_same<T, T> { struct 50 int check1[is_same<split_arrays<int[1], float[2], double[3]>::element_types, 52 int check2[is_same<split_arrays<int[1], float[2], double[3]>::bounds_types,
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
type_traits.h | 75 struct is_same { struct in namespace:llvm 80 struct is_same<T, T> { struct in namespace:llvm
|
/frameworks/av/media/libaudioprocessing/ |
AudioResamplerFirOps.h | 47 struct is_same struct in namespace:android 53 struct is_same<T, T> // partial specialization struct in namespace:android
|
AudioMixerOps.h | 22 /* Behavior of is_same<>::value is true if the types are identical, 23 * false otherwise. Identical to the STL std::is_same. 26 struct is_same struct in namespace:android 32 struct is_same<T, T> // partial specialization struct in namespace:android 182 if (!is_same<TO, TI>::value) {
|
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/ |
p3-1y.cpp | 52 template<typename T, typename U> constexpr bool is_same() { function in namespace:p3_example 61 static_assert(is_same<decltype(x), int>(), ""); 62 static_assert(is_same<decltype(v), const int*>(), ""); 63 static_assert(is_same<decltype(u), const int>(), ""); 64 static_assert(is_same<decltype(y), double>(), ""); 71 static_assert(is_same<decltype(f), int()>(), ""); 72 static_assert(is_same<decltype(g), double()>(), "");
|
/external/clang/test/SemaTemplate/ |
example-typelist.cpp | 13 // is_same trait, for testing 15 struct is_same { struct 20 struct is_same<T, T> { struct 71 int reverse0[is_same<reverse<unsigned_inttypes>::type, 95 int find0[is_same<find<unsigned_inttypes, unsigned int>::type, 98 int find1[is_same<find<unsigned_inttypes, int>::type, nil>::value? 1 : -1];
|
issue150.cpp | 7 struct is_same { struct 12 struct is_same<T, T> { struct 52 int check0[is_same<X<int, Y>::type, Y<int, int*, int* const> >::value? 1 : -1]; 71 int check0[is_same<X<int, int, Y>::type, Y<int, int*, int* const> >::value? 1 : -1];
|
/external/webrtc/webrtc/base/ |
template_util.h | 37 template <class T, class U> struct is_same : public false_type {}; struct in namespace:rtc 38 template <class T> struct is_same<T, T> : true_type {}; struct in namespace:rtc
|
/prebuilts/misc/darwin-x86_64/protobuf2.5/include/google/protobuf/stubs/ |
type_traits.h | 54 // is_same 89 template <class T, class U> struct is_same; 181 is_same<T, void>::value || 298 template<typename T, typename U> struct is_same : public false_type { }; struct in namespace:google::protobuf::internal 299 template<typename T> struct is_same<T, T> : public true_type { }; struct in namespace:google::protobuf::internal
|
/prebuilts/misc/linux-x86_64/protobuf2.5/include/google/protobuf/stubs/ |
type_traits.h | 54 // is_same 89 template <class T, class U> struct is_same; 181 is_same<T, void>::value || 298 template<typename T, typename U> struct is_same : public false_type { }; struct in namespace:google::protobuf::internal 299 template<typename T> struct is_same<T, T> : public true_type { }; struct in namespace:google::protobuf::internal
|
/prebuilts/misc/windows/protobuf2.5/include/google/protobuf/stubs/ |
type_traits.h | 54 // is_same 89 template <class T, class U> struct is_same; 181 is_same<T, void>::value || 298 template<typename T, typename U> struct is_same : public false_type { }; struct in namespace:google::protobuf::internal 299 template<typename T> struct is_same<T, T> : public true_type { }; struct in namespace:google::protobuf::internal
|
/prebuilts/tools/linux-x86_64/protoc/include/google/protobuf/stubs/ |
type_traits.h | 54 // is_same 89 template <class T, class U> struct is_same; 181 is_same<T, void>::value || 298 template<typename T, typename U> struct is_same : public false_type { }; struct in namespace:google::protobuf::internal 299 template<typename T> struct is_same<T, T> : public true_type { }; struct in namespace:google::protobuf::internal
|