#ifndef SPROUT_TUPLE_OPERATION_POP_FRONT_HPP #define SPROUT_TUPLE_OPERATION_POP_FRONT_HPP #include #include #include #include #include namespace sprout { namespace tuples { namespace result_of { // // pop_front // template struct pop_front : public sprout::types::pop_front {}; } // namespace result_of namespace detail { template inline SPROUT_CONSTEXPR Result pop_front_impl( Tuple const& t, sprout::index_tuple ) { return sprout::tuples::remake( t, sprout::tuples::get(t)... ); } } // namespace detail // // pop_front // template inline SPROUT_CONSTEXPR typename sprout::tuples::result_of::pop_front::type>( t, sprout::index_range<1, sprout::tuples::tuple_size::value>::make() ); } } // namespace tuples } // namespace sprout #endif // #ifndef SPROUT_TUPLE_OPERATION_POP_FRONT_HPP