From 000bae9889e3d4bed089c73032542397afa102d6 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 18 Dec 2024 11:07:13 +0000 Subject: [PATCH] Add operator+(int) and operator-(other) --- .../include/CGAL/Concatenate_iterator.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/STL_Extension/include/CGAL/Concatenate_iterator.h b/STL_Extension/include/CGAL/Concatenate_iterator.h index 4db1bb3d6cf..ebfe3f294df 100644 --- a/STL_Extension/include/CGAL/Concatenate_iterator.h +++ b/STL_Extension/include/CGAL/Concatenate_iterator.h @@ -93,6 +93,25 @@ public: return tmp; } + Self operator+(std::size_t offset) const + { + // todo: make this a O(1) time operation + Self res(*this); + for(int i=0;i