Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 797) sorted by relevance

12345678910>>...32

/ndk/sources/cxx-stl/llvm-libc++/test/atomics/atomics.types.generic/
Daddress.pass.cpp72 template <class A, class T>
76 typedef typename std::remove_pointer<T>::type X; in do_test()
77 A obj(T(0)); in do_test()
78 assert(obj == T(0)); in do_test()
79 std::atomic_init(&obj, T(1)); in do_test()
80 assert(obj == T(1)); in do_test()
81 std::atomic_init(&obj, T(2)); in do_test()
82 assert(obj == T(2)); in do_test()
84 obj.store(T(0)); in do_test()
85 assert(obj == T(0)); in do_test()
[all …]
Dintegral.pass.cpp90 template <class A, class T>
94 A obj(T(0)); in do_test()
95 assert(obj == T(0)); in do_test()
96 std::atomic_init(&obj, T(1)); in do_test()
97 assert(obj == T(1)); in do_test()
98 std::atomic_init(&obj, T(2)); in do_test()
99 assert(obj == T(2)); in do_test()
101 obj.store(T(0)); in do_test()
102 assert(obj == T(0)); in do_test()
103 obj.store(T(1), std::memory_order_release); in do_test()
[all …]
/ndk/tests/device/test-stlport_static-exception/jni/
Dhas_nothrow_constructor.cpp43 template<typename T>
46 { return __has_nothrow_constructor(T); } in f()
48 template<typename T>
54 { return !!__has_nothrow_constructor(T); } in f()
57 template<typename T>
61 static const bool trait = __has_nothrow_constructor(T);
64 template<typename T>
65 const bool My2<T>::trait;
68 template<typename T, bool b = __has_nothrow_constructor(T)>
72 template<typename T, bool b>
[all …]
Dhas_nothrow_copy-1.cpp73 template<typename T>
76 { return __has_nothrow_copy(T); } in f()
78 template<typename T>
84 { return !!__has_nothrow_copy(T); } in f()
87 template<typename T>
91 static const bool trait = __has_nothrow_copy(T);
94 template<typename T>
95 const bool My2<T>::trait;
97 template<typename T, bool b = __has_nothrow_copy(T)>
101 template<typename T, bool b>
[all …]
/ndk/tests/device/test-stlport_shared-exception/jni/
Dhas_nothrow_constructor.cpp43 template<typename T>
46 { return __has_nothrow_constructor(T); } in f()
48 template<typename T>
54 { return !!__has_nothrow_constructor(T); } in f()
57 template<typename T>
61 static const bool trait = __has_nothrow_constructor(T);
64 template<typename T>
65 const bool My2<T>::trait;
68 template<typename T, bool b = __has_nothrow_constructor(T)>
72 template<typename T, bool b>
[all …]
Dhas_nothrow_copy-1.cpp73 template<typename T>
76 { return __has_nothrow_copy(T); } in f()
78 template<typename T>
84 { return !!__has_nothrow_copy(T); } in f()
87 template<typename T>
91 static const bool trait = __has_nothrow_copy(T);
94 template<typename T>
95 const bool My2<T>::trait;
97 template<typename T, bool b = __has_nothrow_copy(T)>
101 template<typename T, bool b>
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/numarray/template.valarray/valarray.members/
Dcshift.pass.cpp22 typedef int T; in main() typedef
23 T a1[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; in main()
24 T a2[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; in main()
26 std::valarray<T> v1(a1, N1); in main()
27 std::valarray<T> v2 = v1.cshift(0); in main()
33 typedef int T; in main() typedef
34 T a1[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; in main()
35 T a2[] = {4, 5, 6, 7, 8, 9, 10, 1, 2, 3}; in main()
37 std::valarray<T> v1(a1, N1); in main()
38 std::valarray<T> v2 = v1.cshift(3); in main()
[all …]
Dshift.pass.cpp22 typedef int T; in main() typedef
23 T a1[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; in main()
24 T a2[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; in main()
26 std::valarray<T> v1(a1, N1); in main()
27 std::valarray<T> v2 = v1.shift(0); in main()
33 typedef int T; in main() typedef
34 T a1[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; in main()
35 T a2[] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 0}; in main()
37 std::valarray<T> v1(a1, N1); in main()
38 std::valarray<T> v2 = v1.shift(1); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/utilities/allocator.adaptor/
Dallocators.h9 template <class T>
16 typedef T value_type;
23 static std::pair<T*, std::size_t> deallocate_called;
33 T* allocate(std::size_t n) in allocate()
36 return (T*)n; in allocate()
39 void deallocate(T* p, std::size_t n) in deallocate()
41 deallocate_called = std::pair<T*, std::size_t>(p, n); in deallocate()
47 template <class T> bool A1<T>::copy_called = false;
48 template <class T> bool A1<T>::move_called = false;
49 template <class T> bool A1<T>::allocate_called = false;
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/utilities/tuple/tuple.tuple/
Dallocators.h9 template <class T>
16 typedef T value_type;
23 static std::pair<T*, std::size_t> deallocate_called;
33 T* allocate(std::size_t n) in allocate()
36 return (T*)n; in allocate()
39 void deallocate(T* p, std::size_t n) in deallocate()
41 deallocate_called = std::pair<T*, std::size_t>(p, n); in deallocate()
47 template <class T> bool A1<T>::copy_called = false;
48 template <class T> bool A1<T>::move_called = false;
49 template <class T> bool A1<T>::allocate_called = false;
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/utilities/meta/meta.unary/meta.unary.cat/
Dvoid.pass.cpp16 template <class T>
19 static_assert( std::is_void<T>::value, ""); in test_void_imp()
20 static_assert(!std::is_integral<T>::value, ""); in test_void_imp()
21 static_assert(!std::is_floating_point<T>::value, ""); in test_void_imp()
22 static_assert(!std::is_array<T>::value, ""); in test_void_imp()
23 static_assert(!std::is_pointer<T>::value, ""); in test_void_imp()
24 static_assert(!std::is_lvalue_reference<T>::value, ""); in test_void_imp()
25 static_assert(!std::is_rvalue_reference<T>::value, ""); in test_void_imp()
26 static_assert(!std::is_member_object_pointer<T>::value, ""); in test_void_imp()
27 static_assert(!std::is_member_function_pointer<T>::value, ""); in test_void_imp()
[all …]
Dpointer.pass.cpp16 template <class T>
19 static_assert(!std::is_void<T>::value, ""); in test_pointer_imp()
20 static_assert(!std::is_integral<T>::value, ""); in test_pointer_imp()
21 static_assert(!std::is_floating_point<T>::value, ""); in test_pointer_imp()
22 static_assert(!std::is_array<T>::value, ""); in test_pointer_imp()
23 static_assert( std::is_pointer<T>::value, ""); in test_pointer_imp()
24 static_assert(!std::is_lvalue_reference<T>::value, ""); in test_pointer_imp()
25 static_assert(!std::is_rvalue_reference<T>::value, ""); in test_pointer_imp()
26 static_assert(!std::is_member_object_pointer<T>::value, ""); in test_pointer_imp()
27 static_assert(!std::is_member_function_pointer<T>::value, ""); in test_pointer_imp()
[all …]
Dfloating_point.pass.cpp16 template <class T>
19 static_assert(!std::is_void<T>::value, ""); in test_floating_point_imp()
20 static_assert(!std::is_integral<T>::value, ""); in test_floating_point_imp()
21 static_assert( std::is_floating_point<T>::value, ""); in test_floating_point_imp()
22 static_assert(!std::is_array<T>::value, ""); in test_floating_point_imp()
23 static_assert(!std::is_pointer<T>::value, ""); in test_floating_point_imp()
24 static_assert(!std::is_lvalue_reference<T>::value, ""); in test_floating_point_imp()
25 static_assert(!std::is_rvalue_reference<T>::value, ""); in test_floating_point_imp()
26 static_assert(!std::is_member_object_pointer<T>::value, ""); in test_floating_point_imp()
27 static_assert(!std::is_member_function_pointer<T>::value, ""); in test_floating_point_imp()
[all …]
Dclass.pass.cpp16 template <class T>
19 static_assert(!std::is_void<T>::value, ""); in test_class_imp()
20 static_assert(!std::is_integral<T>::value, ""); in test_class_imp()
21 static_assert(!std::is_floating_point<T>::value, ""); in test_class_imp()
22 static_assert(!std::is_array<T>::value, ""); in test_class_imp()
23 static_assert(!std::is_pointer<T>::value, ""); in test_class_imp()
24 static_assert(!std::is_lvalue_reference<T>::value, ""); in test_class_imp()
25 static_assert(!std::is_rvalue_reference<T>::value, ""); in test_class_imp()
26 static_assert(!std::is_member_object_pointer<T>::value, ""); in test_class_imp()
27 static_assert(!std::is_member_function_pointer<T>::value, ""); in test_class_imp()
[all …]
Denum.pass.cpp16 template <class T>
19 static_assert(!std::is_void<T>::value, ""); in test_enum_imp()
20 static_assert(!std::is_integral<T>::value, ""); in test_enum_imp()
21 static_assert(!std::is_floating_point<T>::value, ""); in test_enum_imp()
22 static_assert(!std::is_array<T>::value, ""); in test_enum_imp()
23 static_assert(!std::is_pointer<T>::value, ""); in test_enum_imp()
24 static_assert(!std::is_lvalue_reference<T>::value, ""); in test_enum_imp()
25 static_assert(!std::is_rvalue_reference<T>::value, ""); in test_enum_imp()
26 static_assert(!std::is_member_object_pointer<T>::value, ""); in test_enum_imp()
27 static_assert(!std::is_member_function_pointer<T>::value, ""); in test_enum_imp()
[all …]
Dfunction.pass.cpp16 template <class T>
19 static_assert(!std::is_void<T>::value, ""); in test_function_imp()
20 static_assert(!std::is_integral<T>::value, ""); in test_function_imp()
21 static_assert(!std::is_floating_point<T>::value, ""); in test_function_imp()
22 static_assert(!std::is_array<T>::value, ""); in test_function_imp()
23 static_assert(!std::is_pointer<T>::value, ""); in test_function_imp()
24 static_assert(!std::is_lvalue_reference<T>::value, ""); in test_function_imp()
25 static_assert(!std::is_rvalue_reference<T>::value, ""); in test_function_imp()
26 static_assert(!std::is_member_object_pointer<T>::value, ""); in test_function_imp()
27 static_assert(!std::is_member_function_pointer<T>::value, ""); in test_function_imp()
[all …]
Dmember_object_pointer.pass.cpp16 template <class T>
19 static_assert(!std::is_void<T>::value, ""); in test_member_object_pointer_imp()
20 static_assert(!std::is_integral<T>::value, ""); in test_member_object_pointer_imp()
21 static_assert(!std::is_floating_point<T>::value, ""); in test_member_object_pointer_imp()
22 static_assert(!std::is_array<T>::value, ""); in test_member_object_pointer_imp()
23 static_assert(!std::is_pointer<T>::value, ""); in test_member_object_pointer_imp()
24 static_assert(!std::is_lvalue_reference<T>::value, ""); in test_member_object_pointer_imp()
25 static_assert(!std::is_rvalue_reference<T>::value, ""); in test_member_object_pointer_imp()
26 static_assert( std::is_member_object_pointer<T>::value, ""); in test_member_object_pointer_imp()
27 static_assert(!std::is_member_function_pointer<T>::value, ""); in test_member_object_pointer_imp()
[all …]
Dunion.pass.cpp16 template <class T>
19 static_assert(!std::is_void<T>::value, ""); in test_union_imp()
20 static_assert(!std::is_integral<T>::value, ""); in test_union_imp()
21 static_assert(!std::is_floating_point<T>::value, ""); in test_union_imp()
22 static_assert(!std::is_array<T>::value, ""); in test_union_imp()
23 static_assert(!std::is_pointer<T>::value, ""); in test_union_imp()
24 static_assert(!std::is_lvalue_reference<T>::value, ""); in test_union_imp()
25 static_assert(!std::is_rvalue_reference<T>::value, ""); in test_union_imp()
26 static_assert(!std::is_member_object_pointer<T>::value, ""); in test_union_imp()
27 static_assert(!std::is_member_function_pointer<T>::value, ""); in test_union_imp()
[all …]
Dmember_function_pointer.pass.cpp16 template <class T>
19 static_assert(!std::is_void<T>::value, ""); in test_member_function_pointer_imp()
20 static_assert(!std::is_integral<T>::value, ""); in test_member_function_pointer_imp()
21 static_assert(!std::is_floating_point<T>::value, ""); in test_member_function_pointer_imp()
22 static_assert(!std::is_array<T>::value, ""); in test_member_function_pointer_imp()
23 static_assert(!std::is_pointer<T>::value, ""); in test_member_function_pointer_imp()
24 static_assert(!std::is_lvalue_reference<T>::value, ""); in test_member_function_pointer_imp()
25 static_assert(!std::is_rvalue_reference<T>::value, ""); in test_member_function_pointer_imp()
26 static_assert(!std::is_member_object_pointer<T>::value, ""); in test_member_function_pointer_imp()
27 static_assert( std::is_member_function_pointer<T>::value, ""); in test_member_function_pointer_imp()
[all …]
Darray.pass.cpp16 template <class T>
19 static_assert(!std::is_void<T>::value, ""); in test_array_imp()
20 static_assert(!std::is_integral<T>::value, ""); in test_array_imp()
21 static_assert(!std::is_floating_point<T>::value, ""); in test_array_imp()
22 static_assert( std::is_array<T>::value, ""); in test_array_imp()
23 static_assert(!std::is_pointer<T>::value, ""); in test_array_imp()
24 static_assert(!std::is_lvalue_reference<T>::value, ""); in test_array_imp()
25 static_assert(!std::is_rvalue_reference<T>::value, ""); in test_array_imp()
26 static_assert(!std::is_member_object_pointer<T>::value, ""); in test_array_imp()
27 static_assert(!std::is_member_function_pointer<T>::value, ""); in test_array_imp()
[all …]
Dintegral.pass.cpp16 template <class T>
19 static_assert(!std::is_void<T>::value, ""); in test_integral_imp()
20 static_assert( std::is_integral<T>::value, ""); in test_integral_imp()
21 static_assert(!std::is_floating_point<T>::value, ""); in test_integral_imp()
22 static_assert(!std::is_array<T>::value, ""); in test_integral_imp()
23 static_assert(!std::is_pointer<T>::value, ""); in test_integral_imp()
24 static_assert(!std::is_lvalue_reference<T>::value, ""); in test_integral_imp()
25 static_assert(!std::is_rvalue_reference<T>::value, ""); in test_integral_imp()
26 static_assert(!std::is_member_object_pointer<T>::value, ""); in test_integral_imp()
27 static_assert(!std::is_member_function_pointer<T>::value, ""); in test_integral_imp()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/rand/rand.eng/rand.eng.lcong/
Ddefault.pass.cpp20 template <class T, T a, T c, T m>
24 typedef std::linear_congruential_engine<T, a, c, m> LCE; in test1()
32 template <class T>
36 test1<T, 0, 0, 0>(); in test()
37 test1<T, 0, 1, 2>(); in test()
38 test1<T, 1, 1, 2>(); in test()
39 const T M(~0); in test()
40 test1<T, 0, 0, M>(); in test()
41 test1<T, 0, M-2, M>(); in test()
42 test1<T, 0, M-1, M>(); in test()
[all …]
Dcopy.pass.cpp20 template <class T, T a, T c, T m>
24 typedef std::linear_congruential_engine<T, a, c, m> E; in test1()
33 template <class T>
37 test1<T, 0, 0, 0>(); in test()
38 test1<T, 0, 1, 2>(); in test()
39 test1<T, 1, 1, 2>(); in test()
40 const T M(~0); in test()
41 test1<T, 0, 0, M>(); in test()
42 test1<T, 0, M-2, M>(); in test()
43 test1<T, 0, M-1, M>(); in test()
[all …]
Dassign.pass.cpp20 template <class T, T a, T c, T m>
24 typedef std::linear_congruential_engine<T, a, c, m> E; in test1()
33 template <class T>
37 test1<T, 0, 0, 0>(); in test()
38 test1<T, 0, 1, 2>(); in test()
39 test1<T, 1, 1, 2>(); in test()
40 const T M(~0); in test()
41 test1<T, 0, 0, M>(); in test()
42 test1<T, 0, M-2, M>(); in test()
43 test1<T, 0, M-1, M>(); in test()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/thread/futures/futures.unique_future/
Dcopy_ctor.fail.cpp22 typedef int T; in main() typedef
23 std::promise<T> p; in main()
24 std::future<T> f0 = p.get_future(); in main()
25 std::future<T> f = f0; in main()
30 typedef int T; in main() typedef
31 std::future<T> f0; in main()
32 std::future<T> f = f0; in main()
37 typedef int& T; in main() typedef
38 std::promise<T> p; in main()
39 std::future<T> f0 = p.get_future(); in main()
[all …]

12345678910>>...32