Lines Matching refs:promise

59 class promise
62 promise();
64 promise(allocator_arg_t, const Allocator& a);
65 promise(promise&& rhs) noexcept;
66 promise(const promise& rhs) = delete;
67 ~promise();
70 promise& operator=(promise&& rhs) noexcept;
71 promise& operator=(const promise& rhs) = delete;
72 void swap(promise& other) noexcept;
89 class promise<R&>
92 promise();
94 promise(allocator_arg_t, const Allocator& a);
95 promise(promise&& rhs) noexcept;
96 promise(const promise& rhs) = delete;
97 ~promise();
100 promise& operator=(promise&& rhs) noexcept;
101 promise& operator=(const promise& rhs) = delete;
102 void swap(promise& other) noexcept;
117 class promise<void>
120 promise();
122 promise(allocator_arg_t, const Allocator& a);
123 promise(promise&& rhs) noexcept;
124 promise(const promise& rhs) = delete;
125 ~promise();
128 promise& operator=(promise&& rhs) noexcept;
129 promise& operator=(const promise& rhs) = delete;
130 void swap(promise& other) noexcept;
144 template <class R> void swap(promise<R>& x, promise<R>& y) noexcept;
147 struct uses_allocator<promise<R>, Alloc> : public true_type {};
1037 template <class _Rp> class _LIBCPP_TYPE_VIS_ONLY promise;
1067 template <class> friend class promise;
1171 template <class> friend class promise;
1270 template <class> friend class promise;
1341 // promise<R>
1346 class _LIBCPP_TYPE_VIS_ONLY promise
1351 explicit promise(nullptr_t) _NOEXCEPT : __state_(nullptr) {}
1355 promise();
1357 promise(allocator_arg_t, const _Alloc& __a);
1360 promise(promise&& __rhs) _NOEXCEPT
1362 promise(const promise& __rhs) = delete;
1365 promise(const promise& __rhs);
1368 ~promise();
1373 promise& operator=(promise&& __rhs) _NOEXCEPT
1375 promise(std::move(__rhs)).swap(*this);
1378 promise& operator=(const promise& __rhs) = delete;
1381 promise& operator=(const promise& __rhs);
1385 void swap(promise& __rhs) _NOEXCEPT {_VSTD::swap(__state_, __rhs.__state_);}
1406 promise<_Rp>::promise()
1413 promise<_Rp>::promise(allocator_arg_t, const _Alloc& __a0)
1424 promise<_Rp>::~promise()
1438 promise<_Rp>::get_future()
1449 promise<_Rp>::set_value(const _Rp& __r)
1462 promise<_Rp>::set_value(_Rp&& __r)
1475 promise<_Rp>::set_exception(exception_ptr __p)
1486 promise<_Rp>::set_value_at_thread_exit(const _Rp& __r)
1499 promise<_Rp>::set_value_at_thread_exit(_Rp&& __r)
1512 promise<_Rp>::set_exception_at_thread_exit(exception_ptr __p)
1521 // promise<R&>
1524 class _LIBCPP_TYPE_VIS_ONLY promise<_Rp&>
1529 explicit promise(nullptr_t) _NOEXCEPT : __state_(nullptr) {}
1534 promise();
1536 promise(allocator_arg_t, const _Allocator& __a);
1539 promise(promise&& __rhs) _NOEXCEPT
1541 promise(const promise& __rhs) = delete;
1544 promise(const promise& __rhs);
1547 ~promise();
1552 promise& operator=(promise&& __rhs) _NOEXCEPT
1554 promise(std::move(__rhs)).swap(*this);
1557 promise& operator=(const promise& __rhs) = delete;
1560 promise& operator=(const promise& __rhs);
1564 void swap(promise& __rhs) _NOEXCEPT {_VSTD::swap(__state_, __rhs.__state_);}
1579 promise<_Rp&>::promise()
1586 promise<_Rp&>::promise(allocator_arg_t, const _Alloc& __a0)
1597 promise<_Rp&>::~promise()
1611 promise<_Rp&>::get_future()
1622 promise<_Rp&>::set_value(_Rp& __r)
1633 promise<_Rp&>::set_exception(exception_ptr __p)
1644 promise<_Rp&>::set_value_at_thread_exit(_Rp& __r)
1655 promise<_Rp&>::set_exception_at_thread_exit(exception_ptr __p)
1664 // promise<void>
1667 class _LIBCPP_TYPE_VIS promise<void>
1672 explicit promise(nullptr_t) _NOEXCEPT : __state_(nullptr) {}
1677 promise();
1679 promise(allocator_arg_t, const _Allocator& __a);
1682 promise(promise&& __rhs) _NOEXCEPT
1684 promise(const promise& __rhs) = delete;
1687 promise(const promise& __rhs);
1690 ~promise();
1695 promise& operator=(promise&& __rhs) _NOEXCEPT
1697 promise(std::move(__rhs)).swap(*this);
1700 promise& operator=(const promise& __rhs) = delete;
1703 promise& operator=(const promise& __rhs);
1707 void swap(promise& __rhs) _NOEXCEPT {_VSTD::swap(__state_, __rhs.__state_);}
1722 promise<void>::promise(allocator_arg_t, const _Alloc& __a0)
1735 swap(promise<_Rp>& __x, promise<_Rp>& __y) _NOEXCEPT
1741 struct _LIBCPP_TYPE_VIS_ONLY uses_allocator<promise<_Rp>, _Alloc>
2012 promise<result_type> __p_;
2132 __p_ = promise<result_type>();
2143 promise<result_type> __p_;
2265 __p_ = promise<result_type>();