Add Remove function to List, to remove items at a given index.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-03-22 19:08:38 +01:00
parent 97bd13a1cb
commit 0b6220b2bf
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ namespace Arbutils::Collections {
inline void Resize(size_t size) { _vector.resize(size); }
inline void Resize(size_t size, ValueT defaultValue) { _vector.resize(size, defaultValue); }
inline void Remove(size_t index){
_vector.erase(_vector.begin() + index);
}
iterator begin() { return _vector.begin(); }
const_iterator begin() const { return _vector.begin(); }