diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-09-05 13:47:57 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-12-17 15:36:04 +0000 |
commit | 8ffe4064eb927dabaf91f33df46aeea4eedb9946 (patch) | |
tree | f9272d782dc001975faa351ab563987932154dfe | |
parent | Fix const weirdness in flatmap (diff) | |
download | icespider-8ffe4064eb927dabaf91f33df46aeea4eedb9946.tar.bz2 icespider-8ffe4064eb927dabaf91f33df46aeea4eedb9946.tar.xz icespider-8ffe4064eb927dabaf91f33df46aeea4eedb9946.zip |
Const only operations in flatmap
-rw-r--r-- | icespider/core/flatMap.h | 15 |
1 files 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; |