2 #ifndef BOOST_MPL_REPLACE_HPP_INCLUDED
\r
3 #define BOOST_MPL_REPLACE_HPP_INCLUDED
\r
5 // Copyright Aleksey Gurtovoy 2000-2004
\r
6 // Copyright John R. Bandela 2000-2002
\r
7 // Copyright David Abrahams 2003-2004
\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
13 // See http://www.boost.org/libs/mpl for documentation.
\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
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
23 namespace boost { namespace mpl {
\r
31 , typename Inserter
\r
34 : replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >
\r
42 , typename Inserter
\r
44 struct reverse_replace_impl
\r
45 : reverse_replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >
\r
51 BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(4, replace)
\r
55 #endif // BOOST_MPL_REPLACE_HPP_INCLUDED
\r