2 #ifndef BOOST_MPL_AUX_PARTITION_OP_HPP_INCLUDED
3 #define BOOST_MPL_AUX_PARTITION_OP_HPP_INCLUDED
5 // Copyright Eric Friedman 2003
6 // Copyright Aleksey Gurtovoy 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.
18 #include <boost/mpl/apply.hpp>
19 #include <boost/mpl/eval_if.hpp>
20 #include <boost/mpl/if.hpp>
21 #include <boost/mpl/pair.hpp>
22 #include <boost/mpl/aux_/lambda_spec.hpp>
24 namespace boost { namespace mpl {
28 template< typename Pred, typename In1Op, typename In2Op >
31 template< typename State, typename T >
34 typedef typename State::first first_;
35 typedef typename State::second second_;
36 typedef typename apply1< Pred,T >::type pred_;
38 typedef typename eval_if<
40 , apply2<In1Op,first_,T>
41 , apply2<In2Op,second_,T>
46 , pair< result_,second_ >
47 , pair< first_,result_ >
54 BOOST_MPL_AUX_PASS_THROUGH_LAMBDA_SPEC(3, aux::partition_op)
58 #endif // BOOST_MPL_AUX_PARTITION_OP_HPP_INCLUDED