source: NonGTP/Boost/boost/mpl/replace.hpp @ 857

Revision 857, 1.3 KB checked in by igarcia, 19 years ago (diff)
Line 
1
2#ifndef BOOST_MPL_REPLACE_HPP_INCLUDED
3#define BOOST_MPL_REPLACE_HPP_INCLUDED
4
5// Copyright Aleksey Gurtovoy 2000-2004
6// Copyright John R. Bandela 2000-2002
7// Copyright David Abrahams 2003-2004
8//
9// Distributed under the Boost Software License, Version 1.0.
10// (See accompanying file LICENSE_1_0.txt or copy at
11// http://www.boost.org/LICENSE_1_0.txt)
12//
13// See http://www.boost.org/libs/mpl for documentation.
14
15// $Source: /cvsroot/boost/boost/boost/mpl/replace.hpp,v $
16// $Date: 2004/11/28 01:57:09 $
17// $Revision: 1.8 $
18
19#include <boost/mpl/replace_if.hpp>
20#include <boost/mpl/same_as.hpp>
21#include <boost/mpl/aux_/inserter_algorithm.hpp>
22
23namespace boost { namespace mpl {
24
25namespace aux {
26
27template<
28      typename Sequence
29    , typename OldType
30    , typename NewType
31    , typename Inserter
32    >
33struct replace_impl
34    : replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >
35{
36};
37
38template<
39      typename Sequence
40    , typename OldType
41    , typename NewType
42    , typename Inserter
43    >
44struct reverse_replace_impl
45    : reverse_replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >
46{
47};
48
49} // namespace aux
50
51BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(4, replace)
52
53}}
54
55#endif // BOOST_MPL_REPLACE_HPP_INCLUDED
Note: See TracBrowser for help on using the repository browser.