From 8ffe4064eb927dabaf91f33df46aeea4eedb9946 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 5 Sep 2021 13:47:57 +0100 Subject: Const only operations in flatmap --- icespider/core/flatMap.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/icespider/core/flatMap.h b/icespider/core/flatMap.h index 7eb6364..6505a3d 100644 --- a/icespider/core/flatMap.h +++ b/icespider/core/flatMap.h @@ -81,9 +81,20 @@ namespace IceSpider { } } - using S::begin; + auto + begin() const + { + return cbegin(); + } + auto + end() const + { + return cend(); + } + + using S::cbegin; + using S::cend; using S::empty; - using S::end; using S::reserve; using S::size; using iterator = typename S::iterator; -- cgit v1.2.3