First public contribution.
2 #ifndef BOOST_MPL_REPLACE_IF_HPP_INCLUDED
3 #define BOOST_MPL_REPLACE_IF_HPP_INCLUDED
5 // Copyright Aleksey Gurtovoy 2000-2004
6 // Copyright John R. Bandela 2000-2002
7 // Copyright David Abrahams 2003-2004
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)
13 // See http://www.boost.org/libs/mpl for documentation.
15 // $Source: /cvsroot/boost/boost/boost/mpl/replace_if.hpp,v $
16 // $Date: 2004/11/28 01:57:09 $
19 #include <boost/mpl/transform.hpp>
20 #include <boost/mpl/apply.hpp>
21 #include <boost/mpl/if.hpp>
22 #include <boost/mpl/aux_/inserter_algorithm.hpp>
23 #include <boost/mpl/aux_/config/forwarding.hpp>
25 namespace boost { namespace mpl {
29 template< typename Predicate, typename T >
32 template< typename U > struct apply
33 #if !defined(BOOST_MPL_CFG_NO_NESTED_FORWARDING)
35 typename apply1<Predicate,U>::type
43 typename apply1<Predicate,U>::type
58 struct replace_if_impl
61 , protect< aux::replace_if_op<Predicate,T> >
73 struct reverse_replace_if_impl
74 : reverse_transform1_impl<
76 , protect< aux::replace_if_op<Predicate,T> >
84 BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(4, replace_if)
88 #endif // BOOST_MPL_REPLACE_IF_HPP_INCLUDED