/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman 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) ==============================================================================*/ #if !defined(FUSION_BACK_09162005_0350) #define FUSION_BACK_09162005_0350 #include #include #include #include #include #include namespace boost { namespace fusion { struct fusion_sequence_tag; namespace result_of { template struct back : result_of::deref::type>::type> {}; } template BOOST_FUSION_GPU_ENABLED inline typename result_of::back::type back(Sequence& seq) { return *fusion::prior(fusion::end(seq)); } template BOOST_FUSION_GPU_ENABLED inline typename result_of::back::type back(Sequence const& seq) { return *fusion::prior(fusion::end(seq)); } }} #endif