]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/include/boost/hana/detail/variadic/reverse_apply.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / hana / include / boost / hana / detail / variadic / reverse_apply.hpp
1 /*!
2 @file
3 Defines `boost::hana::detail::variadic::reverse_apply`.
4
5 @copyright Louis Dionne 2013-2016
6 Distributed under the Boost Software License, Version 1.0.
7 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
8 */
9
10 #ifndef BOOST_HANA_DETAIL_VARIADIC_REVERSE_APPLY_HPP
11 #define BOOST_HANA_DETAIL_VARIADIC_REVERSE_APPLY_HPP
12
13 #include <boost/hana/config.hpp>
14 #include <boost/hana/detail/variadic/reverse_apply/unrolled.hpp>
15
16
17 BOOST_HANA_NAMESPACE_BEGIN namespace detail { namespace variadic {
18 BOOST_HANA_CONSTEXPR_LAMBDA auto reverse_apply =
19 [](auto&& f, auto&& ...x) -> decltype(auto) {
20 return detail::variadic::reverse_apply_unrolled(
21 static_cast<decltype(f)&&>(f),
22 static_cast<decltype(x)&&>(x)...
23 );
24 };
25 }} BOOST_HANA_NAMESPACE_END
26
27 #endif // !BOOST_HANA_DETAIL_VARIADIC_REVERSE_APPLY_HPP