1/*!
2@file
3Defines `boost::hana::detail::nested_to`.
4
5Copyright Louis Dionne 2013-2022
6Distributed 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
19namespace boost { namespace hana { 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} }} // end namespace boost::hana
27
28#endif // !BOOST_HANA_DETAIL_NESTED_TO_HPP
29

source code of boost/libs/hana/include/boost/hana/detail/nested_to.hpp