diff options
author | Yotam Barnoy | 2010-10-31 11:08:43 +0000 |
---|---|---|
committer | Yotam Barnoy | 2010-10-31 11:08:43 +0000 |
commit | 94c8d0a14df429a1b25bd9f5c5d75497fd0ddbd1 (patch) | |
tree | 3df2a4ae7967c56d464729669fc06ce4e93dff36 /common/array.h | |
parent | 8df4278ba8cfbf71228e1927f9db635a9a30a57f (diff) | |
parent | dca3c8d8bfc6c4db38cf8e8291818dd472041d4e (diff) | |
download | scummvm-rg350-94c8d0a14df429a1b25bd9f5c5d75497fd0ddbd1.tar.gz scummvm-rg350-94c8d0a14df429a1b25bd9f5c5d75497fd0ddbd1.tar.bz2 scummvm-rg350-94c8d0a14df429a1b25bd9f5c5d75497fd0ddbd1.zip |
Updated with latest from trunk
svn-id: r53976
Diffstat (limited to 'common/array.h')
-rw-r--r-- | common/array.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/array.h b/common/array.h index 4cc5369f9f..e3aab66dc6 100644 --- a/common/array.h +++ b/common/array.h @@ -150,6 +150,12 @@ public: insert_aux(_storage + idx, &element, &element + 1); } + void insert_at(int idx, const Array<T> &array) { + assert(idx >= 0 && (uint)idx <= _size); + insert_aux(_storage + idx, array.begin(), array.end()); + } + + T remove_at(int idx) { assert(idx >= 0 && (uint)idx < _size); T tmp = _storage[idx]; |