find_if_pred.hpp 756 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef BOOST_MPL_AUX_FIND_IF_PRED_HPP_INCLUDED
  2. #define BOOST_MPL_AUX_FIND_IF_PRED_HPP_INCLUDED
  3. // Copyright Aleksey Gurtovoy 2000-2004
  4. // Copyright Eric Friedman 2002
  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. #include <boost/mpl/aux_/iter_apply.hpp>
  12. #include <boost/mpl/not.hpp>
  13. namespace boost { namespace mpl { namespace aux {
  14. template< typename Predicate >
  15. struct find_if_pred
  16. {
  17. template< typename Iterator >
  18. struct apply
  19. {
  20. typedef not_< aux::iter_apply1<Predicate,Iterator> > type;
  21. };
  22. };
  23. }}}
  24. #endif // BOOST_MPL_AUX_FIND_IF_PRED_HPP_INCLUDED