end.hpp 670 B

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