Return previous value from Set function.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8306c14163
commit
e34f60a8ac
|
@ -52,7 +52,9 @@ namespace Arbutils::Collections {
|
||||||
throw std::logic_error(ss.str());
|
throw std::logic_error(ss.str());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
auto prev = _vector.at(index);
|
||||||
_vector[index] = value;
|
_vector[index] = value;
|
||||||
|
return prev;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool Contains(const ValueT& value) const {
|
inline bool Contains(const ValueT& value) const {
|
||||||
|
|
Loading…
Reference in New Issue