]> AND Private Git Repository - canny.git/blob - stc/exp/ml_stc_linux_make_v1.0/include/boost/mpl/push_back.hpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
6331f357528968602d85df78555b2646caa7f401
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / include / boost / mpl / push_back.hpp
1 \r
2 #ifndef BOOST_MPL_PUSH_BACK_HPP_INCLUDED\r
3 #define BOOST_MPL_PUSH_BACK_HPP_INCLUDED\r
4 \r
5 // Copyright Aleksey Gurtovoy 2000-2004\r
6 //\r
7 // Distributed under the Boost Software License, Version 1.0. \r
8 // (See accompanying file LICENSE_1_0.txt or copy at \r
9 // http://www.boost.org/LICENSE_1_0.txt)\r
10 //\r
11 // See http://www.boost.org/libs/mpl for documentation.\r
12 \r
13 // $Id: push_back.hpp 49267 2008-10-11 06:19:02Z agurtovoy $\r
14 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $\r
15 // $Revision: 49267 $\r
16 \r
17 #include <boost/mpl/push_back_fwd.hpp>\r
18 #include <boost/mpl/aux_/push_back_impl.hpp>\r
19 #include <boost/mpl/sequence_tag.hpp>\r
20 #include <boost/mpl/aux_/na_spec.hpp>\r
21 #include <boost/mpl/aux_/lambda_support.hpp>\r
22 \r
23 namespace boost { namespace mpl {\r
24 \r
25 template<\r
26       typename BOOST_MPL_AUX_NA_PARAM(Sequence)\r
27     , typename BOOST_MPL_AUX_NA_PARAM(T)\r
28     >\r
29 struct push_back\r
30     : push_back_impl< typename sequence_tag<Sequence>::type >\r
31         ::template apply< Sequence,T >\r
32 {\r
33     BOOST_MPL_AUX_LAMBDA_SUPPORT(2,push_back,(Sequence,T))\r
34 };\r
35 \r
36 \r
37 template< \r
38       typename BOOST_MPL_AUX_NA_PARAM(Sequence)\r
39     >\r
40 struct has_push_back\r
41     : has_push_back_impl< typename sequence_tag<Sequence>::type >\r
42         ::template apply< Sequence >\r
43 {\r
44     BOOST_MPL_AUX_LAMBDA_SUPPORT(1,has_push_back,(Sequence))\r
45 };\r
46 \r
47 \r
48 BOOST_MPL_AUX_NA_SPEC(2, push_back)\r
49 BOOST_MPL_AUX_NA_SPEC(1, has_push_back)\r
50 \r
51 }}\r
52 \r
53 #endif // BOOST_MPL_PUSH_BACK_HPP_INCLUDED\r