From ac5292527c6079b9d4d6c873d5aa69a6624530b1 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 19 Feb 2015 13:25:59 +1100 Subject: [PATCH] coord: add begin/end functions --- detail/coord.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/detail/coord.hpp b/detail/coord.hpp index 174cbb0e..d815fd70 100644 --- a/detail/coord.hpp +++ b/detail/coord.hpp @@ -139,6 +139,12 @@ namespace util { T& operator[] (size_t i) { return this->data[i]; } T operator[] (size_t i) const { return this->data[i]; } + + const T* begin (void) const { return std::begin (this->data); } + const T* end (void) const { return std::end (this->data); } + + T* begin (void) { return std::begin (this->data); } + T* end (void) { return std::end (this->data); } };