This commit is contained in:
1 file changed
+3
-2
@@ -20,7 +20,7 @@ namespace Arbutils::Collections {
|
||||
|
||||
inline void Clear() { _vector.clear(); }
|
||||
|
||||
inline const ValueT& At(size_t index) const {
|
||||
inline ValueT& At(size_t index) {
|
||||
#ifndef NO_ASSERT
|
||||
if (index >= _vector.size() || index < 0) {
|
||||
std::stringstream ss;
|
||||
@@ -30,7 +30,8 @@ namespace Arbutils::Collections {
|
||||
#endif
|
||||
return _vector.at(index);
|
||||
}
|
||||
inline ValueT& At(size_t index) {
|
||||
|
||||
inline const ValueT& At(size_t index) const {
|
||||
#ifndef NO_ASSERT
|
||||
if (index >= _vector.size() || index < 0) {
|
||||
std::stringstream ss;
|
||||
|
||||
Reference in new issue
Block a user