Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2026-04-30 9f2ef60949ced4fab4d077a7e1c6d913f3620c9b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#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 size_type = typename container_type::size_type;
 
    template <class... Args>
    multi_polygon(Args&&... args) : container_type(std::forward<Args>(args)...)
    {
    }
    multi_polygon(std::initializer_list<polygon_type> args)
        : container_type(std::move(args)) {}
};
 
} // namespace geometry
} // namespace mapbox