Home
last modified time | relevance | path

Searched refs:get_or (Results 1 – 5 of 5) sorted by relevance

/third_party/boost/libs/thread/test/sync/futures/future/
Dget_or_pass.cpp99 BOOST_TEST(f.get_or(4) == 3); in main()
121 BOOST_TEST(f.get_or(4) == 4); in main()
150 BOOST_TEST(f.get_or(boost::ref(k)) == 5); in main()
168 BOOST_TEST(f.get_or(boost::ref(j)) == 4); in main()
/third_party/boost/libs/thread/example/
Dfuture_fallback_to.cpp107 BOOST_ASSERT(f1.get_or(-1)==-1); in main()
/third_party/boost/libs/thread/doc/
Dfuture_ref.qbk375 see below get_or(see below); // EXTENSION
558 [section:get_or Member function `get_or()` - EXTENSION]
560 R get_or(R&& v); // EXTENSION
561 R get_or(R const& v); // EXTENSION
562 R& __unique_future__<R&>::get_or(R& v); // EXTENSION
563 void __unique_future__<void>::get_or(); // EXTENSION
575 - `__unique_future__<R&>::get_or(v)` return the stored reference if has_value() and the passes para…
577 - `__unique_future__<void>::get_or()`, there is no return value, but the function doesn't throws ev…
579 - `__unique_future__<R>::get_or(v)` returns an rvalue-reference to the value stored in the shared s…
592 [[Notes:] [`get_or()` is an ['interruption point].]]
Dchanges.qbk311 * [@http://svn.boost.org/trac/boost/ticket/10971 #10971] shared_future::get()/get_or() must be const
467 * [@http://svn.boost.org/trac/boost/ticket/8677 #8677] Async: Add future<>::get_or.
/third_party/boost/boost/thread/
Dfuture.hpp1810 get_or(BOOST_THREAD_RV_REF(R2) v) in get_or() function in boost::BOOST_THREAD_FUTURE
1837 get_or(R2 const& v) // EXTENSION in get_or() function in boost::BOOST_THREAD_FUTURE
2068 move_dest_type get_or(BOOST_THREAD_RV_REF(R) v) // EXTENSION in get_or() function in boost::BOOST_THREAD_FUTURE
2087 move_dest_type get_or(R const& v) // EXTENSION in get_or() function in boost::BOOST_THREAD_FUTURE
2231 get_or(BOOST_THREAD_RV_REF(R2) v) const // EXTENSION in get_or() function in boost::shared_future
5354 return fut.get_or(boost::move(value_));
5367 return fut.get_or(value_);