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

Private GIT Repository
ef0a921012aeb40bb2fb69d9a72e0504a66268a8
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / include / boost / mpl / replace.hpp
1 \r
2 #ifndef BOOST_MPL_REPLACE_HPP_INCLUDED\r
3 #define BOOST_MPL_REPLACE_HPP_INCLUDED\r
4 \r
5 // Copyright Aleksey Gurtovoy 2000-2004\r
6 // Copyright John R. Bandela 2000-2002\r
7 // Copyright David Abrahams 2003-2004\r
8 //\r
9 // Distributed under the Boost Software License, Version 1.0. \r
10 // (See accompanying file LICENSE_1_0.txt or copy at \r
11 // http://www.boost.org/LICENSE_1_0.txt)\r
12 //\r
13 // See http://www.boost.org/libs/mpl for documentation.\r
14 \r
15 // $Id: replace.hpp 49267 2008-10-11 06:19:02Z agurtovoy $\r
16 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $\r
17 // $Revision: 49267 $\r
18 \r
19 #include <boost/mpl/replace_if.hpp>\r
20 #include <boost/mpl/same_as.hpp>\r
21 #include <boost/mpl/aux_/inserter_algorithm.hpp>\r
22 \r
23 namespace boost { namespace mpl {\r
24 \r
25 namespace aux {\r
26 \r
27 template<\r
28       typename Sequence\r
29     , typename OldType\r
30     , typename NewType\r
31     , typename Inserter \r
32     >\r
33 struct replace_impl\r
34     : replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >\r
35 {\r
36 };\r
37 \r
38 template<\r
39       typename Sequence\r
40     , typename OldType\r
41     , typename NewType\r
42     , typename Inserter \r
43     >\r
44 struct reverse_replace_impl\r
45     : reverse_replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >\r
46 {\r
47 };\r
48 \r
49 } // namespace aux\r
50 \r
51 BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(4, replace)\r
52 \r
53 }}\r
54 \r
55 #endif // BOOST_MPL_REPLACE_HPP_INCLUDED\r