Searched refs:is_same (Results 1 - 25 of 391) sorted by relevance

1234567891011>>

/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
H A Dp18.cpp5 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<decltyp
[all...]
/external/clang/test/SemaCXX/
H A Ddecltype-this.cpp4 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, ""); }
/external/libcxx/test/utilities/meta/meta.trans/meta.trans.other/
H A Dcommon_type.pass.cpp18 static_assert((std::is_same<std::common_type<int>::type, int>::value), "");
19 static_assert((std::is_same<std::common_type<char>::type, char>::value), "");
21 static_assert((std::is_same<std::common_type_t<int>, int>::value), "");
22 static_assert((std::is_same<std::common_type_t<char>, char>::value), "");
25 static_assert((std::is_same<std::common_type< int>::type, int>::value), "");
26 static_assert((std::is_same<std::common_type<const int>::type, int>::value), "");
27 static_assert((std::is_same<std::common_type< volatile int>::type, int>::value), "");
28 static_assert((std::is_same<std::common_type<const volatile int>::type, int>::value), "");
30 static_assert((std::is_same<std::common_type<int, int>::type, int>::value), "");
31 static_assert((std::is_same<st
[all...]
H A Dconditional.pass.cpp18 static_assert((std::is_same<std::conditional<true, char, int>::type, char>::value), "");
19 static_assert((std::is_same<std::conditional<false, char, int>::type, int>::value), "");
21 static_assert((std::is_same<std::conditional_t<true, char, int>, char>::value), "");
22 static_assert((std::is_same<std::conditional_t<false, char, int>, int>::value), "");
H A Denable_if.pass.cpp18 static_assert((std::is_same<std::enable_if<true>::type, void>::value), "");
19 static_assert((std::is_same<std::enable_if<true, int>::type, int>::value), "");
21 static_assert((std::is_same<std::enable_if_t<true>, void>::value), "");
22 static_assert((std::is_same<std::enable_if_t<true, int>, int>::value), "");
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/
H A Dp4-cxx0x.cpp4 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, "");
/external/libcxx/test/depr/depr.c.headers/
H A Dmath_h.disabled.cpp20 static_assert((std::is_same<decltype(acos((double)0)), double>::value), "");
21 static_assert((std::is_same<decltype(acosf(0)), float>::value), "");
22 static_assert((std::is_same<decltype(acosl(0)), long double>::value), "");
28 static_assert((std::is_same<decltype(asin((double)0)), double>::value), "");
29 static_assert((std::is_same<decltype(asinf(0)), float>::value), "");
30 static_assert((std::is_same<decltype(asinl(0)), long double>::value), "");
36 static_assert((std::is_same<decltype(atan((double)0)), double>::value), "");
37 static_assert((std::is_same<decltype(atanf(0)), float>::value), "");
38 static_assert((std::is_same<decltype(atanl(0)), long double>::value), "");
44 static_assert((std::is_same<decltyp
[all...]
H A Dstdlib_h.pass.cpp42 static_assert((std::is_same<decltype(atof("")), double>::value), "");
43 static_assert((std::is_same<decltype(atoi("")), int>::value), "");
44 static_assert((std::is_same<decltype(atol("")), long>::value), "");
45 static_assert((std::is_same<decltype(atoll("")), long long>::value), "");
46 static_assert((std::is_same<decltype(getenv("")), char*>::value), "");
47 static_assert((std::is_same<decltype(strtod("", endptr)), double>::value), "");
48 static_assert((std::is_same<decltype(strtof("", endptr)), float>::value), "");
49 static_assert((std::is_same<decltype(strtold("", endptr)), long double>::value), "");
50 static_assert((std::is_same<decltype(strtol("", endptr,0)), long>::value), "");
51 static_assert((std::is_same<decltyp
[all...]
/external/libcxx/test/utilities/meta/meta.rel/
H A Dis_same.pass.cpp12 // is_same
19 static_assert((std::is_same<T, U>::value), "");
20 static_assert((!std::is_same<const T, U>::value), "");
21 static_assert((!std::is_same<T, const U>::value), "");
22 static_assert((std::is_same<const T, const U>::value), "");
28 static_assert((std::is_same<T, U>::value), "");
29 static_assert((std::is_same<const T, U>::value), "");
30 static_assert((std::is_same<T, const U>::value), "");
31 static_assert((std::is_same<const T, const U>::value), "");
37 static_assert((!std::is_same<
[all...]
/external/libcxx/test/atomics/atomics.types.generic/
H A Dintegral_typedefs.pass.cpp32 static_assert((std::is_same<std::atomic<char>, std::atomic_char>::value), "");
33 static_assert((std::is_same<std::atomic<signed char>, std::atomic_schar>::value), "");
34 static_assert((std::is_same<std::atomic<unsigned char>, std::atomic_uchar>::value), "");
35 static_assert((std::is_same<std::atomic<short>, std::atomic_short>::value), "");
36 static_assert((std::is_same<std::atomic<unsigned short>, std::atomic_ushort>::value), "");
37 static_assert((std::is_same<std::atomic<int>, std::atomic_int>::value), "");
38 static_assert((std::is_same<std::atomic<unsigned int>, std::atomic_uint>::value), "");
39 static_assert((std::is_same<std::atomic<long>, std::atomic_long>::value), "");
40 static_assert((std::is_same<std::atomic<unsigned long>, std::atomic_ulong>::value), "");
41 static_assert((std::is_same<st
[all...]
H A Dcstdint_typedefs.pass.cpp43 static_assert((std::is_same<std::atomic< std::int_least8_t>, std::atomic_int_least8_t>::value), "");
44 static_assert((std::is_same<std::atomic< std::uint_least8_t>, std::atomic_uint_least8_t>::value), "");
45 static_assert((std::is_same<std::atomic< std::int_least16_t>, std::atomic_int_least16_t>::value), "");
46 static_assert((std::is_same<std::atomic<std::uint_least16_t>, std::atomic_uint_least16_t>::value), "");
47 static_assert((std::is_same<std::atomic< std::int_least32_t>, std::atomic_int_least32_t>::value), "");
48 static_assert((std::is_same<std::atomic<std::uint_least32_t>, std::atomic_uint_least32_t>::value), "");
49 static_assert((std::is_same<std::atomic< std::int_least64_t>, std::atomic_int_least64_t>::value), "");
50 static_assert((std::is_same<std::atomic<std::uint_least64_t>, std::atomic_uint_least64_t>::value), "");
52 static_assert((std::is_same<std::atomic< std::int_fast8_t>, std::atomic_int_fast8_t>::value), "");
53 static_assert((std::is_same<st
[all...]
/external/libcxx/test/numerics/c.math/
H A Dcmath.disabled.cpp26 static_assert((std::is_same<decltype(std::abs((float)0)), float>::value), "");
27 static_assert((std::is_same<decltype(std::abs((double)0)), double>::value), "");
28 static_assert((std::is_same<decltype(std::abs((long double)0)), long double>::value), "");
34 static_assert((std::is_same<decltype(std::acos((float)0)), float>::value), "");
35 static_assert((std::is_same<decltype(std::acos((bool)0)), double>::value), "");
36 static_assert((std::is_same<decltype(std::acos((unsigned short)0)), double>::value), "");
37 static_assert((std::is_same<decltype(std::acos((int)0)), double>::value), "");
38 static_assert((std::is_same<decltype(std::acos((unsigned int)0)), double>::value), "");
39 static_assert((std::is_same<decltype(std::acos((long)0)), double>::value), "");
40 static_assert((std::is_same<decltyp
[all...]
/external/libcxx/test/containers/unord/unord.map/
H A Dtypes.pass.cpp40 static_assert((std::is_same<C::key_type, char>::value), "");
41 static_assert((std::is_same<C::mapped_type, short>::value), "");
42 static_assert((std::is_same<C::hasher, std::hash<C::key_type> >::value), "");
43 static_assert((std::is_same<C::key_equal, std::equal_to<C::key_type> >::value), "");
44 static_assert((std::is_same<C::allocator_type, std::allocator<C::value_type> >::value), "");
45 static_assert((std::is_same<C::value_type, std::pair<const C::key_type, C::mapped_type> >::value), "");
46 static_assert((std::is_same<C::reference, C::value_type&>::value), "");
47 static_assert((std::is_same<C::const_reference, const C::value_type&>::value), "");
48 static_assert((std::is_same<C::pointer, C::value_type*>::value), "");
49 static_assert((std::is_same<
[all...]
/external/libcxx/test/containers/unord/unord.multimap/
H A Dtypes.pass.cpp40 static_assert((std::is_same<C::key_type, char>::value), "");
41 static_assert((std::is_same<C::mapped_type, short>::value), "");
42 static_assert((std::is_same<C::hasher, std::hash<C::key_type> >::value), "");
43 static_assert((std::is_same<C::key_equal, std::equal_to<C::key_type> >::value), "");
44 static_assert((std::is_same<C::allocator_type, std::allocator<C::value_type> >::value), "");
45 static_assert((std::is_same<C::value_type, std::pair<const C::key_type, C::mapped_type> >::value), "");
46 static_assert((std::is_same<C::reference, C::value_type&>::value), "");
47 static_assert((std::is_same<C::const_reference, const C::value_type&>::value), "");
48 static_assert((std::is_same<C::pointer, C::value_type*>::value), "");
49 static_assert((std::is_same<
[all...]
/external/libcxx/test/re/re.regex/
H A Dtypes.pass.cpp26 static_assert((std::is_same<std::basic_regex<char>::value_type, char>::value), "");
27 static_assert((std::is_same<std::basic_regex<char>::flag_type,
29 static_assert((std::is_same<std::basic_regex<char>::locale_type, std::locale>::value), "");
31 static_assert((std::is_same<std::basic_regex<wchar_t>::value_type, wchar_t>::value), "");
32 static_assert((std::is_same<std::basic_regex<wchar_t>::flag_type,
34 static_assert((std::is_same<std::basic_regex<wchar_t>::locale_type, std::locale>::value), "");
/external/libcxx/test/re/re.traits/
H A Dtypes.pass.cpp26 static_assert((std::is_same<std::regex_traits<char>::char_type, char>::value), "");
27 static_assert((std::is_same<std::regex_traits<char>::string_type, std::string>::value), "");
28 static_assert((std::is_same<std::regex_traits<char>::locale_type, std::locale>::value), "");
29 static_assert((std::is_same<std::regex_traits<wchar_t>::char_type, wchar_t>::value), "");
30 static_assert((std::is_same<std::regex_traits<wchar_t>::string_type, std::wstring>::value), "");
31 static_assert((std::is_same<std::regex_traits<wchar_t>::locale_type, std::locale>::value), "");
/external/libcxx/test/depr/depr.function.objects/depr.base/
H A Dunary_function.pass.cpp24 static_assert((std::is_same<std::unary_function<unsigned, char>::argument_type, unsigned>::value), "");
25 static_assert((std::is_same<std::unary_function<unsigned, char>::result_type, char>::value), "");
/external/libcxx/test/numerics/numarray/template.valarray/
H A Dtypes.pass.cpp24 static_assert((std::is_same<std::valarray<int>::value_type, int>::value), "");
25 static_assert((std::is_same<std::valarray<double>::value_type, double>::value), "");
/external/libcxx/test/utilities/function.objects/func.require/
H A Dunary_function.pass.cpp20 static_assert((std::is_same<uf::argument_type, int>::value), "");
21 static_assert((std::is_same<uf::result_type, bool>::value), "");
/external/libcxx/test/utilities/intseq/intseq.make/
H A Dmake_integer_seq.pass.cpp23 static_assert(std::is_same<std::make_integer_sequence<int, 0>, std::integer_sequence<int>>::value, "");
24 static_assert(std::is_same<std::make_integer_sequence<int, 1>, std::integer_sequence<int, 0>>::value, "");
25 static_assert(std::is_same<std::make_integer_sequence<int, 2>, std::integer_sequence<int, 0, 1>>::value, "");
26 static_assert(std::is_same<std::make_integer_sequence<int, 3>, std::integer_sequence<int, 0, 1, 2>>::value, "");
28 static_assert(std::is_same<std::make_integer_sequence<unsigned long long, 0>, std::integer_sequence<unsigned long long>>::value, "");
29 static_assert(std::is_same<std::make_integer_sequence<unsigned long long, 1>, std::integer_sequence<unsigned long long, 0>>::value, "");
30 static_assert(std::is_same<std::make_integer_sequence<unsigned long long, 2>, std::integer_sequence<unsigned long long, 0, 1>>::value, "");
31 static_assert(std::is_same<std::make_integer_sequence<unsigned long long, 3>, std::integer_sequence<unsigned long long, 0, 1, 2>>::value, "");
/external/libcxx/test/utilities/memory/default.allocator/
H A Dallocator_types.pass.cpp36 static_assert((std::is_same<std::allocator<char>::size_type, std::size_t>::value), "");
37 static_assert((std::is_same<std::allocator<char>::difference_type, std::ptrdiff_t>::value), "");
38 static_assert((std::is_same<std::allocator<char>::pointer, char*>::value), "");
39 static_assert((std::is_same<std::allocator<char>::const_pointer, const char*>::value), "");
40 static_assert((std::is_same<std::allocator<char>::value_type, char>::value), "");
41 static_assert((std::is_same<std::allocator<char>::reference, char&>::value), "");
42 static_assert((std::is_same<std::allocator<char>::const_reference, const char&>::value), "");
43 static_assert((std::is_same<std::allocator<char>::rebind<int>::other,
/external/libcxx/test/utilities/memory/pointer.traits/
H A Drebind.pass.cpp25 static_assert((std::is_same<std::pointer_traits<int*>::rebind<double>, double*>::value), "");
27 static_assert((std::is_same<std::pointer_traits<int*>::rebind<double>::other, double*>::value), "");
/external/libcxx/test/utilities/utility/pairs/pairs.pair/
H A Dtypes.pass.cpp24 static_assert((std::is_same<P::first_type, float>::value), "");
25 static_assert((std::is_same<P::second_type, short*>::value), "");
/external/libcxx/test/containers/associative/multiset/
H A Dtypes.pass.cpp40 static_assert((std::is_same<std::multiset<int>::key_type, int>::value), "");
41 static_assert((std::is_same<std::multiset<int>::value_type, int>::value), "");
42 static_assert((std::is_same<std::multiset<int>::key_compare, std::less<int> >::value), "");
43 static_assert((std::is_same<std::multiset<int>::value_compare, std::less<int> >::value), "");
44 static_assert((std::is_same<std::multiset<int>::allocator_type, std::allocator<int> >::value), "");
45 static_assert((std::is_same<std::multiset<int>::reference, int&>::value), "");
46 static_assert((std::is_same<std::multiset<int>::const_reference, const int&>::value), "");
47 static_assert((std::is_same<std::multiset<int>::pointer, int*>::value), "");
48 static_assert((std::is_same<std::multiset<int>::const_pointer, const int*>::value), "");
49 static_assert((std::is_same<st
[all...]
/external/libcxx/test/containers/associative/set/
H A Dtypes.pass.cpp40 static_assert((std::is_same<std::set<int>::key_type, int>::value), "");
41 static_assert((std::is_same<std::set<int>::value_type, int>::value), "");
42 static_assert((std::is_same<std::set<int>::key_compare, std::less<int> >::value), "");
43 static_assert((std::is_same<std::set<int>::value_compare, std::less<int> >::value), "");
44 static_assert((std::is_same<std::set<int>::allocator_type, std::allocator<int> >::value), "");
45 static_assert((std::is_same<std::set<int>::reference, int&>::value), "");
46 static_assert((std::is_same<std::set<int>::const_reference, const int&>::value), "");
47 static_assert((std::is_same<std::set<int>::pointer, int*>::value), "");
48 static_assert((std::is_same<std::set<int>::const_pointer, const int*>::value), "");
49 static_assert((std::is_same<st
[all...]

Completed in 472 milliseconds

1234567891011>>