/src/contrib/boost/spirit/home/phoenix/stl/algorithm/detail/end.hpp

http://pythonocc.googlecode.com/ · C++ Header · 28 lines · 16 code · 4 blank · 8 comment · 0 complexity · 91772636bb13827b08b8f4444454e198 MD5 · raw file

  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 PHOENIX_ALGORITHM_DETAIL_END_HPP
  10. #define 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