partition.hpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef BOOST_MPL_PARTITION_HPP_INCLUDED
  2. #define BOOST_MPL_PARTITION_HPP_INCLUDED
  3. // Copyright Eric Friedman 2002-2003
  4. // Copyright Aleksey Gurtovoy 2004
  5. //
  6. // Distributed under the Boost Software License, Version 1.0.
  7. // (See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. // See http://www.boost.org/libs/mpl for documentation.
  11. // $Id$
  12. // $Date$
  13. // $Revision$
  14. #include <boost/mpl/stable_partition.hpp>
  15. #include <boost/mpl/aux_/inserter_algorithm.hpp>
  16. namespace boost { namespace mpl {
  17. namespace aux {
  18. template <
  19. typename Sequence
  20. , typename Pred
  21. , typename In1
  22. , typename In2
  23. >
  24. struct partition_impl
  25. : stable_partition_impl<Sequence,Pred,In1,In2>
  26. {
  27. };
  28. template <
  29. typename Sequence
  30. , typename Pred
  31. , typename In1
  32. , typename In2
  33. >
  34. struct reverse_partition_impl
  35. : reverse_stable_partition_impl<Sequence,Pred,In1,In2>
  36. {
  37. };
  38. } // namespace aux
  39. BOOST_MPL_AUX_INSERTER_ALGORITHM_DEF(4, partition)
  40. }}
  41. #endif // BOOST_MPL_PARTITION_HPP_INCLUDED