Add Remove function to List, to remove items at a given index.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
97bd13a1cb
commit
0b6220b2bf
|
@ -59,6 +59,10 @@ namespace Arbutils::Collections {
|
||||||
inline void Resize(size_t size) { _vector.resize(size); }
|
inline void Resize(size_t size) { _vector.resize(size); }
|
||||||
inline void Resize(size_t size, ValueT defaultValue) { _vector.resize(size, defaultValue); }
|
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(); }
|
iterator begin() { return _vector.begin(); }
|
||||||
const_iterator begin() const { return _vector.begin(); }
|
const_iterator begin() const { return _vector.begin(); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue