Lines Matching refs:promise
58 class promise
61 promise();
63 promise(allocator_arg_t, const Allocator& a);
64 promise(promise&& rhs) noexcept;
65 promise(const promise& rhs) = delete;
66 ~promise();
69 promise& operator=(promise&& rhs) noexcept;
70 promise& operator=(const promise& rhs) = delete;
71 void swap(promise& other) noexcept;
88 class promise<R&>
91 promise();
93 promise(allocator_arg_t, const Allocator& a);
94 promise(promise&& rhs) noexcept;
95 promise(const promise& rhs) = delete;
96 ~promise();
99 promise& operator=(promise&& rhs) noexcept;
100 promise& operator=(const promise& rhs) = delete;
101 void swap(promise& other) noexcept;
116 class promise<void>
119 promise();
121 promise(allocator_arg_t, const Allocator& a);
122 promise(promise&& rhs) noexcept;
123 promise(const promise& rhs) = delete;
124 ~promise();
127 promise& operator=(promise&& rhs) noexcept;
128 promise& operator=(const promise& rhs) = delete;
129 void swap(promise& other) noexcept;
143 template <class R> void swap(promise<R>& x, promise<R>& y) noexcept;
146 struct uses_allocator<promise<R>, Alloc> : public true_type {};
1027 template <class _Rp> class _LIBCPP_TEMPLATE_VIS promise;
1049 template <class> friend class promise;
1136 template <class> friend class promise;
1218 template <class> friend class promise;
1277 // promise<R>
1282 class _LIBCPP_TEMPLATE_VIS _LIBCPP_AVAILABILITY_FUTURE promise
1287 explicit promise(nullptr_t) _NOEXCEPT : __state_(nullptr) {}
1291 promise();
1293 promise(allocator_arg_t, const _Alloc& __a);
1295 promise(promise&& __rhs) _NOEXCEPT
1297 promise(const promise& __rhs) = delete;
1298 ~promise();
1302 promise& operator=(promise&& __rhs) _NOEXCEPT
1304 promise(_VSTD::move(__rhs)).swap(*this);
1307 promise& operator=(const promise& __rhs) = delete;
1310 void swap(promise& __rhs) _NOEXCEPT {_VSTD::swap(__state_, __rhs.__state_);}
1327 promise<_Rp>::promise()
1334 promise<_Rp>::promise(allocator_arg_t, const _Alloc& __a0)
1346 promise<_Rp>::~promise()
1360 promise<_Rp>::get_future()
1369 promise<_Rp>::set_value(const _Rp& __r)
1378 promise<_Rp>::set_value(_Rp&& __r)
1387 promise<_Rp>::set_exception(exception_ptr __p)
1389 _LIBCPP_ASSERT( __p != nullptr, "promise::set_exception: received nullptr" );
1397 promise<_Rp>::set_value_at_thread_exit(const _Rp& __r)
1406 promise<_Rp>::set_value_at_thread_exit(_Rp&& __r)
1415 promise<_Rp>::set_exception_at_thread_exit(exception_ptr __p)
1417 _LIBCPP_ASSERT( __p != nullptr, "promise::set_exception_at_thread_exit: received nullptr" );
1423 // promise<R&>
1426 class _LIBCPP_TEMPLATE_VIS _LIBCPP_AVAILABILITY_FUTURE promise<_Rp&>
1431 explicit promise(nullptr_t) _NOEXCEPT : __state_(nullptr) {}
1436 promise();
1438 promise(allocator_arg_t, const _Allocator& __a);
1440 promise(promise&& __rhs) _NOEXCEPT
1442 promise(const promise& __rhs) = delete;
1443 ~promise();
1447 promise& operator=(promise&& __rhs) _NOEXCEPT
1449 promise(_VSTD::move(__rhs)).swap(*this);
1452 promise& operator=(const promise& __rhs) = delete;
1455 void swap(promise& __rhs) _NOEXCEPT {_VSTD::swap(__state_, __rhs.__state_);}
1470 promise<_Rp&>::promise()
1477 promise<_Rp&>::promise(allocator_arg_t, const _Alloc& __a0)
1489 promise<_Rp&>::~promise()
1503 promise<_Rp&>::get_future()
1512 promise<_Rp&>::set_value(_Rp& __r)
1521 promise<_Rp&>::set_exception(exception_ptr __p)
1523 _LIBCPP_ASSERT( __p != nullptr, "promise::set_exception: received nullptr" );
1531 promise<_Rp&>::set_value_at_thread_exit(_Rp& __r)
1540 promise<_Rp&>::set_exception_at_thread_exit(exception_ptr __p)
1542 _LIBCPP_ASSERT( __p != nullptr, "promise::set_exception_at_thread_exit: received nullptr" );
1548 // promise<void>
1551 class _LIBCPP_TYPE_VIS _LIBCPP_AVAILABILITY_FUTURE promise<void>
1556 explicit promise(nullptr_t) _NOEXCEPT : __state_(nullptr) {}
1561 promise();
1564 promise(allocator_arg_t, const _Allocator& __a);
1566 promise(promise&& __rhs) _NOEXCEPT
1568 promise(const promise& __rhs) = delete;
1569 ~promise();
1573 promise& operator=(promise&& __rhs) _NOEXCEPT
1575 promise(_VSTD::move(__rhs)).swap(*this);
1578 promise& operator=(const promise& __rhs) = delete;
1581 void swap(promise& __rhs) _NOEXCEPT {_VSTD::swap(__state_, __rhs.__state_);}
1596 promise<void>::promise(allocator_arg_t, const _Alloc& __a0)
1610 swap(promise<_Rp>& __x, promise<_Rp>& __y) _NOEXCEPT
1616 struct _LIBCPP_TEMPLATE_VIS uses_allocator<promise<_Rp>, _Alloc>
1891 promise<result_type> __p_;
1995 __p_ = promise<result_type>();
2006 promise<result_type> __p_;
2122 __p_ = promise<result_type>();