sliced.hpp 879 B

123456789101112131415161718192021222324252627282930313233343536
  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_SLICED_HPP
  7. #define BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_SLICED_HPP
  8. #include <boost/range/adaptor/sliced.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. struct tag<boost::adaptors::sliced_range<Geometry> >
  17. {
  18. typedef typename geometry::tag<Geometry>::type type;
  19. };
  20. }
  21. }} // namespace boost::geometry
  22. #endif // BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_SLICED_HPP