aboutsummaryrefslogtreecommitdiffstats
path: root/include/mapbox/geometry/multi_polygon.hpp
blob: ad230a04c85b59ecd77083df9272b733811c11f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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