]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/mpl/replace.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / mpl / replace.hpp
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 // $Id$
16 // $Date$
17 // $Revision$
18
19 #include <boost/mpl/replace_if.hpp>
20 #include <boost/mpl/same_as.hpp>
21 #include <boost/mpl/aux_/inserter_algorithm.hpp>
22
23 namespace boost { namespace mpl {
24
25 namespace aux {
26
27 template<
28 typename Sequence
29 , typename OldType
30 , typename NewType
31 , typename Inserter
32 >
33 struct replace_impl
34 : replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >
35 {
36 };
37
38 template<
39 typename Sequence
40 , typename OldType
41 , typename NewType
42 , typename Inserter
43 >
44 struct reverse_replace_impl
45 : reverse_replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >
46 {
47 };
48
49 } // namespace aux
50
51 BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(4, replace)
52
53 }}
54
55 #endif // BOOST_MPL_REPLACE_HPP_INCLUDED