Make retrieve operation a const.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
262156fbd2
commit
8ecf765ead
|
@ -30,7 +30,7 @@ namespace ArbUt {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inline BorrowedPtr<ValueT> At(size_t index) {
|
inline BorrowedPtr<ValueT> At(size_t index) const {
|
||||||
#ifndef NO_ASSERT
|
#ifndef NO_ASSERT
|
||||||
if (index >= _vector.size() || index < 0) {
|
if (index >= _vector.size() || index < 0) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
|
@ -56,7 +56,7 @@ namespace ArbUt {
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void Append(ValueT* value) { _vector.push_back(value); }
|
inline void Append(ValueT* value) { _vector.push_back(value); }
|
||||||
inline BorrowedPtr<ValueT> operator[](size_t index) { return At(index); }
|
inline BorrowedPtr<ValueT> operator[] (size_t index) const { return At(index); }
|
||||||
|
|
||||||
inline size_t Count() const { return _vector.size(); }
|
inline size_t Count() const { return _vector.size(); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue