From 7db82e4b22314512d3422b1430510781dd219ac7 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 21 Sep 2016 22:23:20 +1000 Subject: [PATCH] coord/base: add cbegin and cend members --- coord/base.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coord/base.hpp b/coord/base.hpp index 42c5abde..41585b8e 100644 --- a/coord/base.hpp +++ b/coord/base.hpp @@ -54,6 +54,9 @@ namespace util { namespace coord { T& operator[] (size_t i) { return this->data[i]; } constexpr const T& operator[] (size_t i) const { return this->data[i]; } + auto cbegin (void) const { return std::cbegin (this->data); } + auto cend (void) const { return std::cend (this->data); } + auto begin (void) const { return std::begin (this->data); } auto end (void) const { return std::end (this->data); }