pascal: begin/end should be const

This commit is contained in:
Danny Robson 2014-07-29 02:20:24 +10:00
parent 503f5e2eff
commit 14fd62a64a
2 changed files with 4 additions and 4 deletions

View File

@ -71,14 +71,14 @@ parray<T>::at (size_t idx) const {
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
template <typename T> template <typename T>
T* T*
parray<T>::begin (void) { parray<T>::begin (void) const {
return data; return data;
} }
template <typename T> template <typename T>
T* T*
parray<T>::end (void) { parray<T>::end (void) const {
return data + size; return data + size;
} }

View File

@ -37,8 +37,8 @@ namespace util {
T& at (size_t idx); T& at (size_t idx);
const T& at (size_t idx) const; const T& at (size_t idx) const;
T* begin (void); T* begin (void) const;
T* end (void); T* end (void) const;
const T* cbegin (void) const; const T* cbegin (void) const;
const T* cend (void) const; const T* cend (void) const;