Switch At functions around.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
196bf5e1da
commit
cc86041b06
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue