]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/boost_no_cxx17_std_apply.ipp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / config / test / boost_no_cxx17_std_apply.ipp
1 // (C) Copyright Oliver Kowalke 2016.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 // See http://www.boost.org/libs/config for most recent version.
7
8 // MACRO: BOOST_NO_CXX17_STD_APPLY
9 // TITLE: apply
10 // DESCRIPTION: The compiler supports the std::apply() function.
11
12 #include <functional>
13 #include <tuple>
14
15 namespace boost_no_cxx17_std_apply {
16
17 int foo( int i, int j) {
18 return i + j;
19 }
20
21 int test() {
22 int i = 1, j = 2;
23 std::apply( foo, std::make_tuple( i, j) );
24 return 0;
25 }
26
27 }
28