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>
|
||||
T*
|
||||
parray<T>::begin (void) {
|
||||
parray<T>::begin (void) const {
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
template <typename T>
|
||||
T*
|
||||
parray<T>::end (void) {
|
||||
parray<T>::end (void) const {
|
||||
return data + size;
|
||||
}
|
||||
|
||||
|
@ -37,8 +37,8 @@ namespace util {
|
||||
T& at (size_t idx);
|
||||
const T& at (size_t idx) const;
|
||||
|
||||
T* begin (void);
|
||||
T* end (void);
|
||||
T* begin (void) const;
|
||||
T* end (void) const;
|
||||
|
||||
const T* cbegin (void) const;
|
||||
const T* cend (void) const;
|
||||
|
Loading…
Reference in New Issue
Block a user