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
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
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 }
0050
0051 BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(4, replace)
0052
0053 }}
0054
0055 #endif