pascal: begin/end should be const
This commit is contained in:
parent
503f5e2eff
commit
14fd62a64a
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user