]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/hana/detail/nested_to.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / hana / detail / nested_to.hpp
1 /*!
2 @file
3 Defines `boost::hana::detail::nested_to`.
4
5 @copyright Louis Dionne 2013-2017
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_NESTED_TO_HPP
11 #define BOOST_HANA_DETAIL_NESTED_TO_HPP
12
13 #include <boost/hana/detail/nested_to_fwd.hpp>
14
15 #include <boost/hana/config.hpp>
16 #include <boost/hana/functional/partial.hpp>
17
18
19 BOOST_HANA_NAMESPACE_BEGIN namespace detail {
20 //! @cond
21 template <typename Algorithm>
22 template <typename X>
23 constexpr decltype(auto) nested_to_t<Algorithm>::operator()(X&& x) const
24 { return hana::partial(Algorithm{}, static_cast<X&&>(x)); }
25 //! @endcond
26 } BOOST_HANA_NAMESPACE_END
27
28 #endif // !BOOST_HANA_DETAIL_NESTED_TO_HPP