aboutsummaryrefslogtreecommitdiffstats
path: root/include/mapbox/geometry/multi_polygon.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mapbox/geometry/multi_polygon.hpp')
-rw-r--r--include/mapbox/geometry/multi_polygon.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/mapbox/geometry/multi_polygon.hpp b/include/mapbox/geometry/multi_polygon.hpp
new file mode 100644
index 0000000..ad230a0
--- /dev/null
+++ b/include/mapbox/geometry/multi_polygon.hpp
@@ -0,0 +1,21 @@
+#pragma once
+
+// mapbox
+#include <mapbox/geometry/polygon.hpp>
+// stl
+#include <vector>
+
+namespace mapbox {
+namespace geometry {
+
+template <typename T, template <typename...> class Cont = std::vector>
+struct multi_polygon : Cont<polygon<T>>
+{
+ using coordinate_type = T;
+ using polygon_type = polygon<T>;
+ using container_type = Cont<polygon_type>;
+ using container_type::container_type;
+};
+
+} // namespace geometry
+} // namespace mapbox