]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/sync/futures/when_all/none_pass.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / thread / test / sync / futures / when_all / none_pass.cpp
1 //===----------------------------------------------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // Copyright (C) 2014 Vicente J. Botet Escriba
11 //
12 // Distributed under the Boost Software License, Version 1.0. (See accompanying
13 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
14
15 // <boost/thread/future.hpp>
16
17 // future<tuple<>> when_all();
18
19 #include <boost/config.hpp>
20
21 #if ! defined BOOST_NO_CXX11_DECLTYPE
22 #define BOOST_RESULT_OF_USE_DECLTYPE
23 #endif
24
25
26 #define BOOST_THREAD_VERSION 4
27
28 #include <boost/thread/future.hpp>
29 #include <boost/detail/lightweight_test.hpp>
30
31 int main()
32 {
33 #if defined BOOST_THREAD_PROVIDES_FUTURE_WHEN_ALL_WHEN_ANY
34
35 {
36 boost::future<boost::csbl::tuple<> > all = boost::when_all();
37 BOOST_TEST(all.valid());
38 BOOST_TEST(all.is_ready());
39 }
40 #endif
41
42 return boost::report_errors();
43 }
44