reversed.hpp 977 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2010-2012 Barend Gehrels, Amsterdam, the Netherlands.
  3. // Use, modification and distribution is subject to the Boost Software License,
  4. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. #ifndef BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_REVERSED_HPP
  7. #define BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_REVERSED_HPP
  8. #include <boost/range/adaptor/reversed.hpp>
  9. #include <boost/geometry/core/tag.hpp>
  10. #include <boost/geometry/core/tags.hpp>
  11. namespace boost { namespace geometry
  12. {
  13. namespace traits
  14. {
  15. template<typename Geometry>
  16. #if BOOST_VERSION > 104500
  17. struct tag<boost::reversed_range<Geometry> >
  18. #else
  19. struct tag<boost::range_detail::reverse_range<Geometry> >
  20. #endif
  21. {
  22. typedef typename geometry::tag<Geometry>::type type;
  23. };
  24. }
  25. }} // namespace boost::geometry
  26. #endif // BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_REVERSED_HPP