Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:41:57

0001 
0002 #ifndef BOOST_MPL_REPLACE_HPP_INCLUDED
0003 #define BOOST_MPL_REPLACE_HPP_INCLUDED
0004 
0005 // Copyright Aleksey Gurtovoy 2000-2004
0006 // Copyright John R. Bandela 2000-2002
0007 // Copyright David Abrahams 2003-2004
0008 //
0009 // Distributed under the Boost Software License, Version 1.0. 
0010 // (See accompanying file LICENSE_1_0.txt or copy at 
0011 // http://www.boost.org/LICENSE_1_0.txt)
0012 //
0013 // See http://www.boost.org/libs/mpl for documentation.
0014 
0015 // $Id$
0016 // $Date$
0017 // $Revision$
0018 
0019 #include <boost/mpl/replace_if.hpp>
0020 #include <boost/mpl/same_as.hpp>
0021 #include <boost/mpl/aux_/inserter_algorithm.hpp>
0022 
0023 namespace boost { namespace mpl {
0024 
0025 namespace aux {
0026 
0027 template<
0028       typename Sequence
0029     , typename OldType
0030     , typename NewType
0031     , typename Inserter 
0032     >
0033 struct replace_impl
0034     : replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >
0035 {
0036 };
0037 
0038 template<
0039       typename Sequence
0040     , typename OldType
0041     , typename NewType
0042     , typename Inserter 
0043     >
0044 struct reverse_replace_impl
0045     : reverse_replace_if_impl< Sequence, same_as<OldType>, NewType, Inserter >
0046 {
0047 };
0048 
0049 } // namespace aux
0050 
0051 BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(4, replace)
0052 
0053 }}
0054 
0055 #endif // BOOST_MPL_REPLACE_HPP_INCLUDED