Update contrib.
2 #ifndef BOOST_MPL_COPY_IF_HPP_INCLUDED
3 #define BOOST_MPL_COPY_IF_HPP_INCLUDED
5 // Copyright Aleksey Gurtovoy 2000-2004
6 // Copyright David Abrahams 2003-2004
8 // Distributed under the Boost Software License, Version 1.0.
9 // (See accompanying file LICENSE_1_0.txt or copy at
10 // http://www.boost.org/LICENSE_1_0.txt)
12 // See http://www.boost.org/libs/mpl for documentation.
14 // $Source: /cvsroot/boost/boost/boost/mpl/copy_if.hpp,v $
15 // $Date: 2004/09/02 15:40:41 $
18 #include <boost/mpl/fold.hpp>
19 #include <boost/mpl/reverse_fold.hpp>
20 #include <boost/mpl/apply.hpp>
21 #include <boost/mpl/eval_if.hpp>
22 #include <boost/mpl/identity.hpp>
23 #include <boost/mpl/protect.hpp>
24 #include <boost/mpl/aux_/inserter_algorithm.hpp>
25 #include <boost/mpl/aux_/config/forwarding.hpp>
27 namespace boost { namespace mpl {
37 template< typename Sequence, typename T > struct apply
38 #if !defined(BOOST_MPL_CFG_NO_NESTED_FORWARDING)
40 typename apply1<Predicate,T>::type
41 , apply2<Operation,Sequence,T>
47 typedef typename eval_if<
48 typename apply1<Predicate,T>::type
49 , apply2<Operation,Sequence,T>
64 , typename Inserter::state
65 , protect< aux::copy_if_op<
66 typename Inserter::operation
78 struct reverse_copy_if_impl
81 , typename Inserter::state
82 , protect< aux::copy_if_op<
83 typename Inserter::operation
92 BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(3, copy_if)
96 #endif // BOOST_MPL_COPY_IF_HPP_INCLUDED