end.hpp 745 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2005 Daniel Wallin.
  2. // Copyright 2005 Joel de Guzman.
  3. // Copyright 2015 John Fletcher.
  4. //
  5. // Use, modification and distribution is subject to the Boost Software
  6. // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // Modeled after range_ex, Copyright 2004 Eric Niebler
  10. #ifndef BOOST_PHOENIX_ALGORITHM_DETAIL_END_HPP
  11. #define BOOST_PHOENIX_ALGORITHM_DETAIL_END_HPP
  12. //#include <boost/range/result_iterator.hpp> is deprecated
  13. #include <boost/range/iterator.hpp>
  14. #include <boost/range/end.hpp>
  15. namespace boost { namespace phoenix {
  16. namespace detail
  17. {
  18. template<class R>
  19. typename range_iterator<R>::type
  20. end_(R& r)
  21. {
  22. return boost::end(r);
  23. }
  24. }
  25. }}
  26. #endif