array lists now can be cleared
This commit is contained in:
@@ -19,6 +19,11 @@ struct Array_List {
|
|||||||
data = 0;
|
data = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void clear() {
|
||||||
|
next_index = 0;
|
||||||
|
}
|
||||||
|
|
||||||
Array_List<type> clone() {
|
Array_List<type> clone() {
|
||||||
Array_List<type> ret;
|
Array_List<type> ret;
|
||||||
ret.length = length;
|
ret.length = length;
|
||||||
|
|||||||
Reference in New Issue
Block a user