3 Defines `boost::hana::detail::nested_to`.
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)
10 #ifndef BOOST_HANA_DETAIL_NESTED_TO_HPP
11 #define BOOST_HANA_DETAIL_NESTED_TO_HPP
13 #include <boost/hana/detail/nested_to_fwd.hpp>
15 #include <boost/hana/config.hpp>
16 #include <boost/hana/functional/partial.hpp>
19 BOOST_HANA_NAMESPACE_BEGIN namespace detail {
21 template <typename Algorithm>
23 constexpr decltype(auto) nested_to_t<Algorithm>::operator()(X&& x) const
24 { return hana::partial(Algorithm{}, static_cast<X&&>(x)); }
26 } BOOST_HANA_NAMESPACE_END
28 #endif // !BOOST_HANA_DETAIL_NESTED_TO_HPP