1 parent 9fed75b commit 9f3c67fCopy full SHA for 9f3c67f
1 file changed
src/Processing.h
@@ -3234,6 +3234,8 @@ class ArrayList<T, false> {
3234
::std::vector<T> snapshot = other.data;
3235
data.insert(data.begin()+idx, snapshot.begin(), snapshot.end());
3236
}
3237
+ ::std::vector<T> toArray() const { return data; }
3238
+ T* toArray(T* arr) const { ::std::copy(data.begin(),data.end(),arr); return arr; }
3239
ArrayList<T,false> subList(int from, int to) const {
3240
// Real java.util.ArrayList.subList() throws IndexOutOfBoundsException
3241
// for fromIndex<0, toIndex>size(), or fromIndex>toIndex. Without this
0 commit comments