//          Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
//    (See accompanying file LICENSE_1_0.txt or copy at
//          http://www.boost.org/LICENSE_1_0.txt)

#ifndef FCPPT_TUPLE_APPLY_RESULT_HPP_INCLUDED
#define FCPPT_TUPLE_APPLY_RESULT_HPP_INCLUDED

#include <fcppt/mpl/list/front.hpp>
#include <fcppt/mpl/list/object_fwd.hpp>
#include <fcppt/tuple/size.hpp>
#include <fcppt/tuple/detail/apply_result_impl.hpp>
#include <fcppt/config/external_begin.hpp>
#include <utility>
#include <fcppt/config/external_end.hpp>

namespace fcppt::tuple
{
/**
\brief Result of #fcppt::tuple::apply.

\ingroup fcppttuple
*/
template <typename Function, typename... Tuples>
using apply_result = fcppt::tuple::detail::apply_result_impl<
    Function,
    std::make_index_sequence<
        fcppt::tuple::size<fcppt::mpl::list::front<fcppt::mpl::list::object<Tuples...>>>::value>,
    Tuples...>::type;
}

#endif
