/*! @file Defines `boost::hana::detail::variadic::drop_into`. @copyright Louis Dionne 2013-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_DETAIL_VARIADIC_DROP_INTO_HPP #define BOOST_HANA_DETAIL_VARIADIC_DROP_INTO_HPP #include #include #include BOOST_HANA_NAMESPACE_BEGIN namespace detail { namespace variadic { template > struct dropper; template struct dropper> { F f; template constexpr auto go(decltype(ignore, (void*)0)..., Rest ...rest) const { return f(*rest...); } template constexpr auto operator()(Xs ...xs) const { return go(&xs...); } }; template struct make_dropper { template constexpr auto operator()(F f) const { return dropper{f}; } }; template constexpr make_dropper drop_into{}; }} BOOST_HANA_NAMESPACE_END #endif // !BOOST_HANA_DETAIL_VARIADIC_DROP_INTO_HPP