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

1234

/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/20_util/common_type/requirements/
H A Dtypedefs-2.cc29 using std::is_same;
31 VERIFY( (is_same<common_type<void>::type, void>::value) );
32 VERIFY( (is_same<common_type<const void>::type, const void>::value) );
33 VERIFY( (is_same<common_type<volatile void>::type, volatile void>::value) );
34 VERIFY( (is_same<common_type<const volatile void>::type,
37 VERIFY( (is_same<common_type<void, void>::type, void>::value) );
38 VERIFY( (is_same<common_type<void, const void>::type, void>::value) );
39 VERIFY( (is_same<common_type<void, volatile void>::type, void>::value) );
40 VERIFY( (is_same<common_type<void, const volatile void>::type,
42 VERIFY( (is_same<common_typ
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/tr1/4_metaprogramming/is_same/
H A Dvalue.cc29 using std::tr1::is_same;
33 VERIFY( (test_relationship<is_same, int, int>(true)) );
34 VERIFY( (test_relationship<is_same, const int, const int>(true)) );
35 VERIFY( (test_relationship<is_same, int&, int&>(true)) );
36 VERIFY( (test_relationship<is_same, ClassType, ClassType>(true)) );
39 VERIFY( (test_relationship<is_same, void, int>(false)) );
40 VERIFY( (test_relationship<is_same, int, const int>(false)) );
41 VERIFY( (test_relationship<is_same, int, int&>(false)) );
42 VERIFY( (test_relationship<is_same, int, ClassType>(false)) );
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/libstdc++-v3/testsuite/tr1/4_metaprogramming/relationships_between_types/is_same/
H A Dis_same.cc30 using std::tr1::is_same;
34 VERIFY( (test_relationship<is_same, int, int>(true)) );
35 VERIFY( (test_relationship<is_same, const int, const int>(true)) );
36 VERIFY( (test_relationship<is_same, int&, int&>(true)) );
37 VERIFY( (test_relationship<is_same, ClassType, ClassType>(true)) );
40 VERIFY( (test_relationship<is_same, void, int>(false)) );
41 VERIFY( (test_relationship<is_same, int, const int>(false)) );
42 VERIFY( (test_relationship<is_same, int, int&>(false)) );
43 VERIFY( (test_relationship<is_same, int, ClassType>(false)) );
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/g++.dg/cpp0x/
H A Ddecltype-refbug.C6 struct is_same struct
12 struct is_same<T, T> struct
17 static_assert(is_same<decltype(f()), int&&>::value, "decltype of rvalue reference");
H A Ddecltype12.C4 struct is_same struct
10 struct is_same<T, T> struct
26 static_assert(is_same<decltype(f(i)), int&&>::value, "direct call");
27 static_assert(is_same<decltype(fp(i)), int&&>::value, "pointer");
28 static_assert(is_same<decltype((*fp)(i)), int&&>::value,
30 static_assert(is_same<decltype(fr(i)), int&&>::value,
32 static_assert(is_same<decltype(xr.f(i)), int&&>::value,
34 static_assert(is_same<decltype((xr.*mfp)(i)), int&&>::value,
36 static_assert(is_same<decltype((xp->*mfp)(i)), int&&>::value,
H A Ddecltype1.C5 struct is_same struct
11 struct is_same<T, T> struct
21 static_assert(is_same<decltype(foo()), const int&>::value,
23 static_assert(is_same<decltype(i), int>::value,
25 static_assert(is_same<decltype(a->x), double>::value,
27 static_assert(is_same<decltype((a->x)), const double&>::value,
H A Ddecltype6.C5 struct is_same struct
11 struct is_same<T, T> struct
29 static_assert(is_same<decltype(foo<int>()), const int&>::value,
31 static_assert(is_same<decltype(i), int>::value,
33 static_assert(is_same<decltype(a->x), double>::value,
35 static_assert(is_same<decltype((a->x)), const double&>::value,
H A Dvariadic14.C9 struct is_same { struct
14 struct is_same<T, T> { struct
18 int a0[is_same<make_function_type<int>::type, int()>::value? 1 : -1];
19 int a1[is_same<make_function_type<int, float>::type, int(float)>::value? 1 : -1];
20 int a2[is_same<make_function_type<int, float>::type, int(float)>::value? 1 : -1];
21 int a3[is_same<make_function_type<int, float, double>::type, int(float, double)>::value? 1 : -1];
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/20_util/add_lvalue_reference/
H A Dvalue.cc29 using std::is_same;
32 VERIFY( (is_same<add_lvalue_reference<int>::type, int&>::value) );
33 VERIFY( (is_same<add_lvalue_reference<int&>::type, int&>::value) );
34 VERIFY( (is_same<add_lvalue_reference<const int>::type, const int&>::value) );
35 VERIFY( (is_same<add_lvalue_reference<int*>::type, int*&>::value) );
36 VERIFY( (is_same<add_lvalue_reference<ClassType&>::type, ClassType&>::value) );
37 VERIFY( (is_same<add_lvalue_reference<ClassType>::type, ClassType&>::value) );
38 VERIFY( (is_same<add_lvalue_reference<int(int)>::type, int(&)(int)>::value) );
39 VERIFY( (is_same<add_lvalue_reference<int&&>::type, int&>::value) );
40 VERIFY( (is_same<add_lvalue_referenc
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/tr1/4_metaprogramming/remove_all_extents/
H A Dvalue.cc30 using std::tr1::is_same;
33 VERIFY( (is_same<remove_all_extents<int>::type, int>::value) );
34 VERIFY( (is_same<remove_all_extents<int[2]>::type, int>::value) );
35 VERIFY( (is_same<remove_all_extents<int[2][3]>::type, int>::value) );
36 VERIFY( (is_same<remove_all_extents<int[][3]>::type, int>::value) );
37 VERIFY( (is_same<remove_all_extents<const int[2][3]>::type,
39 VERIFY( (is_same<remove_all_extents<ClassType>::type, ClassType>::value) );
40 VERIFY( (is_same<remove_all_extents<ClassType[2]>::type, ClassType>::value) );
41 VERIFY( (is_same<remove_all_extents<ClassType[2][3]>::type,
43 VERIFY( (is_same<remove_all_extent
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/tr1/4_metaprogramming/remove_extent/
H A Dvalue.cc30 using std::tr1::is_same;
33 VERIFY( (is_same<remove_extent<int>::type, int>::value) );
34 VERIFY( (is_same<remove_extent<int[2]>::type, int>::value) );
35 VERIFY( (is_same<remove_extent<int[2][3]>::type, int[3]>::value) );
36 VERIFY( (is_same<remove_extent<int[][3]>::type, int[3]>::value) );
37 VERIFY( (is_same<remove_extent<const int[2]>::type, const int>::value) );
38 VERIFY( (is_same<remove_extent<ClassType>::type, ClassType>::value) );
39 VERIFY( (is_same<remove_extent<ClassType[2]>::type, ClassType>::value) );
40 VERIFY( (is_same<remove_extent<ClassType[2][3]>::type,
42 VERIFY( (is_same<remove_exten
[all...]
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/libstdc++-v3/testsuite/tr1/4_metaprogramming/array_modifications/
H A Dremove_all_extents.cc31 using std::tr1::is_same;
34 VERIFY( (is_same<remove_all_extents<int>::type, int>::value) );
35 VERIFY( (is_same<remove_all_extents<int[2]>::type, int>::value) );
36 VERIFY( (is_same<remove_all_extents<int[2][3]>::type, int>::value) );
37 VERIFY( (is_same<remove_all_extents<int[][3]>::type, int>::value) );
38 VERIFY( (is_same<remove_all_extents<const int[2][3]>::type,
40 VERIFY( (is_same<remove_all_extents<ClassType>::type, ClassType>::value) );
41 VERIFY( (is_same<remove_all_extents<ClassType[2]>::type, ClassType>::value) );
42 VERIFY( (is_same<remove_all_extents<ClassType[2][3]>::type,
44 VERIFY( (is_same<remove_all_extent
[all...]
H A Dremove_extent.cc31 using std::tr1::is_same;
34 VERIFY( (is_same<remove_extent<int>::type, int>::value) );
35 VERIFY( (is_same<remove_extent<int[2]>::type, int>::value) );
36 VERIFY( (is_same<remove_extent<int[2][3]>::type, int[3]>::value) );
37 VERIFY( (is_same<remove_extent<int[][3]>::type, int[3]>::value) );
38 VERIFY( (is_same<remove_extent<const int[2]>::type, const int>::value) );
39 VERIFY( (is_same<remove_extent<ClassType>::type, ClassType>::value) );
40 VERIFY( (is_same<remove_extent<ClassType[2]>::type, ClassType>::value) );
41 VERIFY( (is_same<remove_extent<ClassType[2][3]>::type,
43 VERIFY( (is_same<remove_exten
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/tr1/4_metaprogramming/is_same/requirements/
H A Dexplicit_instantiation.cc31 template struct is_same<test_type, test_type>;
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/tr1/4_metaprogramming/add_pointer/
H A Dvalue.cc30 using std::tr1::is_same;
33 VERIFY( (is_same<add_pointer<int>::type, int*>::value) );
34 VERIFY( (is_same<add_pointer<int*>::type, int**>::value) );
35 VERIFY( (is_same<add_pointer<const int>::type, const int*>::value) );
36 VERIFY( (is_same<add_pointer<int&>::type, int*>::value) );
37 VERIFY( (is_same<add_pointer<ClassType*>::type, ClassType**>::value) );
38 VERIFY( (is_same<add_pointer<ClassType>::type, ClassType*>::value) );
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/tr1/4_metaprogramming/remove_pointer/
H A Dvalue.cc30 using std::tr1::is_same;
33 VERIFY( (is_same<remove_pointer<int*>::type, int>::value) );
34 VERIFY( (is_same<remove_pointer<int>::type, int>::value) );
35 VERIFY( (is_same<remove_pointer<const int*>::type, const int>::value) );
36 VERIFY( (is_same<remove_pointer<int**>::type, int*>::value) );
37 VERIFY( (is_same<remove_pointer<ClassType*>::type, ClassType>::value) );
38 VERIFY( (is_same<remove_pointer<ClassType>::type, ClassType>::value) );
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/tr1/4_metaprogramming/remove_reference/
H A Dvalue.cc30 using std::tr1::is_same;
33 VERIFY( (is_same<remove_reference<int&>::type, int>::value) );
34 VERIFY( (is_same<remove_reference<int>::type, int>::value) );
35 VERIFY( (is_same<remove_reference<const int&>::type, const int>::value) );
36 VERIFY( (is_same<remove_reference<int*&>::type, int*>::value) );
37 VERIFY( (is_same<remove_reference<ClassType&>::type, ClassType>::value) );
38 VERIFY( (is_same<remove_reference<ClassType>::type, ClassType>::value) );
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/libstdc++-v3/testsuite/tr1/4_metaprogramming/pointer_modifications/
H A Dadd_pointer.cc31 using std::tr1::is_same;
34 VERIFY( (is_same<add_pointer<int>::type, int*>::value) );
35 VERIFY( (is_same<add_pointer<int*>::type, int**>::value) );
36 VERIFY( (is_same<add_pointer<const int>::type, const int*>::value) );
37 VERIFY( (is_same<add_pointer<int&>::type, int*>::value) );
38 VERIFY( (is_same<add_pointer<ClassType*>::type, ClassType**>::value) );
39 VERIFY( (is_same<add_pointer<ClassType>::type, ClassType*>::value) );
H A Dremove_pointer.cc31 using std::tr1::is_same;
34 VERIFY( (is_same<remove_pointer<int*>::type, int>::value) );
35 VERIFY( (is_same<remove_pointer<int>::type, int>::value) );
36 VERIFY( (is_same<remove_pointer<const int*>::type, const int>::value) );
37 VERIFY( (is_same<remove_pointer<int**>::type, int*>::value) );
38 VERIFY( (is_same<remove_pointer<ClassType*>::type, ClassType>::value) );
39 VERIFY( (is_same<remove_pointer<ClassType>::type, ClassType>::value) );
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/libstdc++-v3/testsuite/tr1/4_metaprogramming/reference_modifications/
H A Dadd_reference.cc31 using std::tr1::is_same;
34 VERIFY( (is_same<add_reference<int>::type, int&>::value) );
35 VERIFY( (is_same<add_reference<int&>::type, int&>::value) );
36 VERIFY( (is_same<add_reference<const int>::type, const int&>::value) );
37 VERIFY( (is_same<add_reference<int*>::type, int*&>::value) );
38 VERIFY( (is_same<add_reference<ClassType&>::type, ClassType&>::value) );
39 VERIFY( (is_same<add_reference<ClassType>::type, ClassType&>::value) );
H A Dremove_reference.cc31 using std::tr1::is_same;
34 VERIFY( (is_same<remove_reference<int&>::type, int>::value) );
35 VERIFY( (is_same<remove_reference<int>::type, int>::value) );
36 VERIFY( (is_same<remove_reference<const int&>::type, const int>::value) );
37 VERIFY( (is_same<remove_reference<int*&>::type, int*>::value) );
38 VERIFY( (is_same<remove_reference<ClassType&>::type, ClassType>::value) );
39 VERIFY( (is_same<remove_reference<ClassType>::type, ClassType>::value) );
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/20_util/add_rvalue_reference/
H A Dvalue.cc29 using std::is_same;
32 VERIFY( (is_same<add_rvalue_reference<int>::type, int&&>::value) );
33 VERIFY( (is_same<add_rvalue_reference<int&&>::type, int&&>::value) );
34 VERIFY( (is_same<add_rvalue_reference<const int>::type, const int&&>::value) );
35 VERIFY( (is_same<add_rvalue_reference<int*>::type, int*&&>::value) );
36 VERIFY( (is_same<add_rvalue_reference<ClassType&&>::type, ClassType&&>::value) );
37 VERIFY( (is_same<add_rvalue_reference<ClassType>::type, ClassType&&>::value) );
38 VERIFY( (is_same<add_rvalue_reference<int(int)>::type, int(&&)(int)>::value) );
39 VERIFY( (is_same<add_rvalue_reference<void>::type, void>::value) );
40 VERIFY( (is_same<add_rvalue_referenc
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/20_util/identity/
H A Dvalue.cc29 using std::is_same;
32 VERIFY( (is_same<identity<int>::type, int>::value) );
33 VERIFY( (is_same<identity<int&>::type, int&>::value) );
34 VERIFY( (is_same<identity<int&&>::type, int&&>::value) );
35 VERIFY( (is_same<identity<int*>::type, int*>::value) );
36 VERIFY( (is_same<identity<ClassType&&>::type, ClassType&&>::value) );
37 VERIFY( (is_same<identity<ClassType>::type, ClassType>::value) );
38 VERIFY( (is_same<identity<int(int)>::type, int(int)>::value) );
39 VERIFY( (is_same<identity<void>::type, void>::value) );
40 VERIFY( (is_same<identit
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/20_util/remove_reference/
H A Dvalue.cc29 using std::is_same;
32 VERIFY( (is_same<remove_reference<int&>::type, int>::value) );
33 VERIFY( (is_same<remove_reference<int>::type, int>::value) );
34 VERIFY( (is_same<remove_reference<const int&>::type, const int>::value) );
35 VERIFY( (is_same<remove_reference<int*&>::type, int*>::value) );
36 VERIFY( (is_same<remove_reference<ClassType&>::type, ClassType>::value) );
37 VERIFY( (is_same<remove_reference<ClassType>::type, ClassType>::value) );
38 VERIFY( (is_same<remove_reference<int(&)(int)>::type, int(int)>::value) );
39 VERIFY( (is_same<remove_reference<int&&>::type, int>::value) );
40 VERIFY( (is_same<remove_referenc
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libstdc++-v3/testsuite/tr1/4_metaprogramming/add_reference/
H A Dvalue.cc30 using std::tr1::is_same;
33 VERIFY( (is_same<add_reference<int>::type, int&>::value) );
34 VERIFY( (is_same<add_reference<int&>::type, int&>::value) );
35 VERIFY( (is_same<add_reference<const int>::type, const int&>::value) );
36 VERIFY( (is_same<add_reference<int*>::type, int*&>::value) );
37 VERIFY( (is_same<add_reference<ClassType&>::type, ClassType&>::value) );
38 VERIFY( (is_same<add_reference<ClassType>::type, ClassType&>::value) );
40 VERIFY( (is_same<add_reference<void>::type, void>::value) );
41 VERIFY( (is_same<add_reference<const void>::type, const void>::value) );

Completed in 121 milliseconds

1234