Searched refs:promise (Results 1 - 25 of 149) sorted by relevance

123456

/prebuilts/ndk/current/sources/cxx-stl/llvm-libc++/test/std/thread/futures/futures.promise/
H A Dcopy_ctor.fail.cpp14 // class promise<R>
16 // promise(const promise&) = delete;
26 std::promise<int> p0;
27 std::promise<int> p(p0); // expected-error {{call to deleted constructor of 'std::promise<int>'}}
30 std::promise<int &> p0;
31 std::promise<int &> p(p0); // expected-error {{call to deleted constructor of 'std::promise<int &>'}}
34 std::promise<voi
[all...]
H A Dcopy_assign.fail.cpp14 // class promise<R>
16 // promise& operator=(const promise& rhs) = delete;
26 std::promise<int> p0, p;
30 std::promise<int&> p0, p;
34 std::promise<void> p0, p;
39 std::promise<int> p0, p;
40 p = p0; // expected-error {{'operator=' is a private member of 'std::__1::promise<int>'}}
43 std::promise<int&> p0, p;
44 p = p0; // expected-error {{'operator=' is a private member of 'std::__1::promise<in
[all...]
H A Duses_allocator.pass.cpp14 // class promise<R>
17 // struct uses_allocator<promise<R>, Alloc>
25 static_assert((std::uses_allocator<std::promise<int>, test_allocator<int> >::value), "");
26 static_assert((std::uses_allocator<std::promise<int&>, test_allocator<int> >::value), "");
27 static_assert((std::uses_allocator<std::promise<void>, test_allocator<void> >::value), "");
H A Ddefault.pass.cpp15 // class promise<R>
17 // promise();
25 std::promise<int> p;
30 std::promise<int&> p;
35 std::promise<void> p;
H A Dset_lvalue_at_thread_exit.pass.cpp15 // class promise<R>
17 // void promise<R&>::set_value_at_thread_exit(R& r);
25 void func(std::promise<int&> p)
34 std::promise<int&> p;
H A Dset_value_at_thread_exit_const.pass.cpp15 // class promise<R>
17 // void promise::set_value_at_thread_exit(const R& r);
22 void func(std::promise<int> p)
31 std::promise<int> p;
H A Dset_value_at_thread_exit_void.pass.cpp15 // class promise<R>
17 // void promise<void>::set_value_at_thread_exit();
25 void func(std::promise<void> p)
34 std::promise<void> p;
H A Dalloc_ctor.pass.cpp15 // class promise<R>
18 // promise(allocator_arg_t, const Allocator& a);
30 std::promise<int> p(std::allocator_arg, test_allocator<int>(42));
38 std::promise<int&> p(std::allocator_arg, test_allocator<int>(42));
46 std::promise<void> p(std::allocator_arg, test_allocator<void>(42));
55 std::promise<int> p(std::allocator_arg, bare_allocator<void>());
60 std::promise<int&> p(std::allocator_arg, bare_allocator<void>());
65 std::promise<void> p(std::allocator_arg, bare_allocator<void>());
71 std::promise<int> p(std::allocator_arg, min_allocator<void>());
76 std::promise<in
[all...]
H A Dget_future.pass.cpp16 // class promise<R>
26 std::promise<double> p;
32 std::promise<double> p;
45 std::promise<double> p;
46 std::promise<double> p0 = std::move(p);
H A Dset_exception_at_thread_exit.pass.cpp16 // class promise<R>
18 // void promise::set_exception_at_thread_exit(exception_ptr p);
23 void func(std::promise<int> p)
33 std::promise<T> p;
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/thread/futures/futures.promise/
H A Dcopy_ctor.fail.cpp14 // class promise<R>
16 // promise(const promise&) = delete;
26 std::promise<int> p0;
27 std::promise<int> p(p0); // expected-error {{call to deleted constructor of 'std::promise<int>'}}
30 std::promise<int &> p0;
31 std::promise<int &> p(p0); // expected-error {{call to deleted constructor of 'std::promise<int &>'}}
34 std::promise<voi
[all...]
H A Dcopy_assign.fail.cpp14 // class promise<R>
16 // promise& operator=(const promise& rhs) = delete;
26 std::promise<int> p0, p;
30 std::promise<int&> p0, p;
34 std::promise<void> p0, p;
39 std::promise<int> p0, p;
40 p = p0; // expected-error {{'operator=' is a private member of 'std::__1::promise<int>'}}
43 std::promise<int&> p0, p;
44 p = p0; // expected-error {{'operator=' is a private member of 'std::__1::promise<in
[all...]
H A Duses_allocator.pass.cpp14 // class promise<R>
17 // struct uses_allocator<promise<R>, Alloc>
25 static_assert((std::uses_allocator<std::promise<int>, test_allocator<int> >::value), "");
26 static_assert((std::uses_allocator<std::promise<int&>, test_allocator<int> >::value), "");
27 static_assert((std::uses_allocator<std::promise<void>, test_allocator<void> >::value), "");
H A Ddefault.pass.cpp15 // class promise<R>
17 // promise();
25 std::promise<int> p;
30 std::promise<int&> p;
35 std::promise<void> p;
H A Dset_lvalue_at_thread_exit.pass.cpp15 // class promise<R>
17 // void promise<R&>::set_value_at_thread_exit(R& r);
25 void func(std::promise<int&> p)
34 std::promise<int&> p;
H A Dset_value_at_thread_exit_const.pass.cpp15 // class promise<R>
17 // void promise::set_value_at_thread_exit(const R& r);
22 void func(std::promise<int> p)
31 std::promise<int> p;
H A Dset_value_at_thread_exit_void.pass.cpp15 // class promise<R>
17 // void promise<void>::set_value_at_thread_exit();
25 void func(std::promise<void> p)
34 std::promise<void> p;
H A Dalloc_ctor.pass.cpp15 // class promise<R>
18 // promise(allocator_arg_t, const Allocator& a);
30 std::promise<int> p(std::allocator_arg, test_allocator<int>(42));
38 std::promise<int&> p(std::allocator_arg, test_allocator<int>(42));
46 std::promise<void> p(std::allocator_arg, test_allocator<void>(42));
55 std::promise<int> p(std::allocator_arg, bare_allocator<void>());
60 std::promise<int&> p(std::allocator_arg, bare_allocator<void>());
65 std::promise<void> p(std::allocator_arg, bare_allocator<void>());
71 std::promise<int> p(std::allocator_arg, min_allocator<void>());
76 std::promise<in
[all...]
H A Dget_future.pass.cpp16 // class promise<R>
26 std::promise<double> p;
32 std::promise<double> p;
45 std::promise<double> p;
46 std::promise<double> p0 = std::move(p);
/prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.promise/
H A Duses_allocator.pass.cpp12 // class promise<R>
15 // struct uses_allocator<promise<R>, Alloc>
23 static_assert((std::uses_allocator<std::promise<int>, test_allocator<int> >::value), "");
24 static_assert((std::uses_allocator<std::promise<int&>, test_allocator<int> >::value), "");
25 static_assert((std::uses_allocator<std::promise<void>, test_allocator<void> >::value), "");
H A Ddefault.pass.cpp12 // class promise<R>
14 // promise();
22 std::promise<int> p;
27 std::promise<int&> p;
32 std::promise<void> p;
H A Dset_lvalue_at_thread_exit.pass.cpp12 // class promise<R>
14 // void promise<R&>::set_value_at_thread_exit(R& r);
22 void func(std::promise<int&> p)
31 std::promise<int&> p;
H A Dset_value_at_thread_exit_const.pass.cpp12 // class promise<R>
14 // void promise::set_value_at_thread_exit(const R& r);
19 void func(std::promise<int> p)
28 std::promise<int> p;
H A Dset_value_at_thread_exit_void.pass.cpp12 // class promise<R>
14 // void promise<void>::set_value_at_thread_exit();
22 void func(std::promise<void> p)
31 std::promise<void> p;
H A Dget_future.pass.cpp12 // class promise<R>
22 std::promise<double> p;
28 std::promise<double> p;
41 std::promise<double> p;
42 std::promise<double> p0 = std::move(p);

Completed in 819 milliseconds

123456