We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fcf5607 + 065f398 commit c86619cCopy full SHA for c86619c
CPP/Clipper2Lib/include/clipper2/clipper.core.h
@@ -248,6 +248,20 @@ namespace Clipper2Lib
248
template <typename T>
249
using Paths = std::vector<Path<T>>;
250
251
+ template <typename T, typename T2=T>
252
+ Path<T>& operator<<(Path<T>& poly, const Point<T2>& p)
253
+ {
254
+ poly.emplace_back(p);
255
+ return poly;
256
+ }
257
+
258
+ template <typename T>
259
+ Paths<T>& operator<<(Paths<T>& polys, const Path<T>& p)
260
261
+ polys.emplace_back(p);
262
+ return polys;
263
264
265
using Path64 = Path<int64_t>;
266
using PathD = Path<double>;
267
using Paths64 = std::vector< Path64>;
0 commit comments