]> git.lyx.org Git - lyx.git/blob - 3rdparty/boost/boost/fusion/mpl/back.hpp
Update to boost 1.72
[lyx.git] / 3rdparty / boost / boost / fusion / mpl / back.hpp
1 /*=============================================================================
2     Copyright (c) 2001-2011 Joel de Guzman
3
4     Distributed under the Boost Software License, Version 1.0. (See accompanying 
5     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #if !defined(FUSION_BACK_10022005_1620)
8 #define FUSION_BACK_10022005_1620
9
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/mpl/back.hpp>
12 #include <boost/fusion/sequence/intrinsic/end.hpp>
13 #include <boost/fusion/iterator/prior.hpp>
14 #include <boost/fusion/iterator/value_of.hpp>
15
16 namespace boost { namespace mpl
17 {
18     template <typename Tag>
19     struct back_impl;
20
21     template <>
22     struct back_impl<fusion::fusion_sequence_tag>
23     {
24         template <typename Sequence>
25         struct apply : 
26             fusion::result_of::value_of<
27                 typename fusion::result_of::prior<
28                     typename fusion::result_of::end<Sequence>::type
29                 >::type> {};
30     };
31 }}
32
33 #endif