diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-11-02 14:13:07 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-11-02 14:13:07 +0900 |
commit | 30d24cbc67ef416672a3386b10be8fe6711c65d7 (patch) | |
tree | ecc8813e6742661e1521d6399d04cc4abc54587f /include/mapbox/geometry/multi_point.hpp | |
parent | ae47635e56c4af4d816a76e5186e945768543679 (diff) |
use mapbox as navigation
Diffstat (limited to 'include/mapbox/geometry/multi_point.hpp')
-rw-r--r-- | include/mapbox/geometry/multi_point.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/mapbox/geometry/multi_point.hpp b/include/mapbox/geometry/multi_point.hpp new file mode 100644 index 0000000..a3c73cf --- /dev/null +++ b/include/mapbox/geometry/multi_point.hpp @@ -0,0 +1,21 @@ +#pragma once + +// mapbox +#include <mapbox/geometry/point.hpp> +// stl +#include <vector> + +namespace mapbox { +namespace geometry { + +template <typename T, template <typename...> class Cont = std::vector> +struct multi_point : Cont<point<T>> +{ + using coordinate_type = T; + using point_type = point<T>; + using container_type = Cont<point_type>; + using container_type::container_type; +}; + +} // namespace geometry +} // namespace mapbox |