1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
4 // Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
5 // Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
7 // This file was modified by Oracle on 2017-2021.
8 // Modifications copyright (c) 2017-2021 Oracle and/or its affiliates.
9 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
11 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
12 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
14 // Use, modification and distribution is subject to the Boost Software License,
15 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
16 // http://www.boost.org/LICENSE_1_0.txt)
18 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_MULTI_MODIFY_HPP
19 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_MULTI_MODIFY_HPP
22 #include <boost/range/begin.hpp>
23 #include <boost/range/end.hpp>
26 namespace boost { namespace geometry
30 #ifndef DOXYGEN_NO_DETAIL
35 template <typename Policy>
38 template <typename MultiGeometry>
39 static inline void apply(MultiGeometry& multi)
41 auto const end = boost::end(multi);
42 for (auto it = boost::begin(multi); it != end; ++it)
48 template <typename MultiGeometry, typename Strategy>
49 static inline void apply(MultiGeometry& multi, Strategy const& strategy)
51 auto const end = boost::end(multi);
52 for (auto it = boost::begin(multi); it != end; ++it)
54 Policy::apply(*it, strategy);
64 }} // namespace boost::geometry
67 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_MULTI_MODIFY_HPP