coord: add begin/end functions

This commit is contained in:
Danny Robson 2015-02-19 13:25:59 +11:00
parent 58ac6e910e
commit ac5292527c

View File

@ -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); }
};