diff options
author | Noel Grandin <noel@peralex.com> | 2012-07-13 15:13:47 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-17 15:28:09 +0200 |
commit | 194070ca6154fdc4a704f872463a084fdb922032 (patch) | |
tree | 9d7acadb6cfb704a94ab9f8ea571d864fcbe381b /o3tl/inc | |
parent | 0f57086b221eb1e7d3d9d7cdb6f3cdcb50f1edda (diff) |
Add erase(size_t) method to o3tl::sorted_vector
I can't add a regular erase(iterator) method because we only hand
out const_iterator's
Change-Id: Ia3bdecb0f909d0712138c7ee48da268951e2733b
Diffstat (limited to 'o3tl/inc')
-rw-r--r-- | o3tl/inc/o3tl/sorted_vector.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/o3tl/inc/o3tl/sorted_vector.hxx b/o3tl/inc/o3tl/sorted_vector.hxx index 153e9950b77a..0f543d532cdd 100644 --- a/o3tl/inc/o3tl/sorted_vector.hxx +++ b/o3tl/inc/o3tl/sorted_vector.hxx @@ -74,6 +74,11 @@ public: return 0; } + void erase( size_t index ) + { + std::vector<Value>::erase( _begin() + index ); + } + // ACCESSORS // Only return a const iterator, so that the vector cannot be directly updated. |