Imported Upstream version 1.49.0
[platform/upstream/boost.git] / boost / geometry / multi / core / interior_rings.hpp
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2
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.
6
7 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
8 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
9
10 // Use, modification and distribution is subject to the Boost Software License,
11 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
12 // http://www.boost.org/LICENSE_1_0.txt)
13
14
15 #ifndef BOOST_GEOMETRY_MULTI_CORE_INTERIOR_RINGS_HPP
16 #define BOOST_GEOMETRY_MULTI_CORE_INTERIOR_RINGS_HPP
17
18
19 #include <cstddef>
20
21 #include <boost/range.hpp>
22
23 #include <boost/geometry/core/interior_rings.hpp>
24 #include <boost/geometry/multi/core/tags.hpp>
25
26
27 namespace boost { namespace geometry
28 {
29
30
31 #ifndef DOXYGEN_NO_DISPATCH
32 namespace core_dispatch
33 {
34
35
36 template <typename MultiPolygon>
37 struct interior_type<multi_polygon_tag, MultiPolygon>
38 {
39     typedef typename core_dispatch::interior_type
40         <
41             polygon_tag,
42             typename boost::range_value<MultiPolygon>::type
43         >::type type;
44 };
45
46
47 } // namespace core_dispatch
48 #endif
49
50
51
52 }} // namespace boost::geometry
53
54
55 #endif // BOOST_GEOMETRY_MULTI_CORE_INTERIOR_RINGS_HPP