Return previous value from Set function.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-04-22 13:22:20 +02:00
parent 8306c14163
commit e34f60a8ac
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 2 additions and 0 deletions

View File

@ -52,7 +52,9 @@ namespace Arbutils::Collections {
throw std::logic_error(ss.str());
}
#endif
auto prev = _vector.at(index);
_vector[index] = value;
return prev;
}
inline bool Contains(const ValueT& value) const {