浏览代码

array lists now can be cleared

banana-cakes
FelixBrendel 6 年前
父节点
当前提交
07e89f3841
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      arraylist.hpp

+ 5
- 0
arraylist.hpp 查看文件

@@ -19,6 +19,11 @@ struct Array_List {
data = 0;
}


void clear() {
next_index = 0;
}

Array_List<type> clone() {
Array_List<type> ret;
ret.length = length;


正在加载...
取消
保存