12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_MULTI_MODIFY_HPP
- #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_MULTI_MODIFY_HPP
- #include <boost/range/begin.hpp>
- #include <boost/range/end.hpp>
- namespace boost { namespace geometry
- {
- #ifndef DOXYGEN_NO_DETAIL
- namespace detail
- {
- template <typename Policy>
- struct multi_modify
- {
- template <typename MultiGeometry>
- static inline void apply(MultiGeometry& multi)
- {
- auto const end = boost::end(multi);
- for (auto it = boost::begin(multi); it != end; ++it)
- {
- Policy::apply(*it);
- }
- }
- template <typename MultiGeometry, typename Strategy>
- static inline void apply(MultiGeometry& multi, Strategy const& strategy)
- {
- auto const end = boost::end(multi);
- for (auto it = boost::begin(multi); it != end; ++it)
- {
- Policy::apply(*it, strategy);
- }
- }
- };
- }
- #endif
- }}
- #endif
|