equal
deleted
inserted
replaced
|
1 |
|
2 #ifndef BOOST_MPL_PARTITION_HPP_INCLUDED |
|
3 #define BOOST_MPL_PARTITION_HPP_INCLUDED |
|
4 |
|
5 // Copyright Eric Friedman 2002-2003 |
|
6 // Copyright Aleksey Gurtovoy 2004 |
|
7 // |
|
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) |
|
11 // |
|
12 // See http://www.boost.org/libs/mpl for documentation. |
|
13 |
|
14 // $Id: partition.hpp 49267 2008-10-11 06:19:02Z agurtovoy $ |
|
15 // $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $ |
|
16 // $Revision: 49267 $ |
|
17 |
|
18 #include <boost/mpl/stable_partition.hpp> |
|
19 #include <boost/mpl/aux_/inserter_algorithm.hpp> |
|
20 |
|
21 namespace boost { namespace mpl { |
|
22 |
|
23 namespace aux { |
|
24 |
|
25 template < |
|
26 typename Sequence |
|
27 , typename Pred |
|
28 , typename In1 |
|
29 , typename In2 |
|
30 > |
|
31 struct partition_impl |
|
32 : stable_partition_impl<Sequence,Pred,In1,In2> |
|
33 { |
|
34 }; |
|
35 |
|
36 template < |
|
37 typename Sequence |
|
38 , typename Pred |
|
39 , typename In1 |
|
40 , typename In2 |
|
41 > |
|
42 struct reverse_partition_impl |
|
43 : reverse_stable_partition_impl<Sequence,Pred,In1,In2> |
|
44 { |
|
45 }; |
|
46 |
|
47 } // namespace aux |
|
48 |
|
49 BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(4, partition) |
|
50 |
|
51 }} |
|
52 |
|
53 #endif // BOOST_MPL_PARTITION_HPP_INCLUDED |