coord: add begin/end functions
This commit is contained in:
parent
58ac6e910e
commit
ac5292527c
@ -139,6 +139,12 @@ namespace util {
|
|||||||
|
|
||||||
T& operator[] (size_t i) { return this->data[i]; }
|
T& operator[] (size_t i) { return this->data[i]; }
|
||||||
T operator[] (size_t i) const { 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); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user