1 Star 0 Fork 86

LearningTogether/pythonvm

forked from hinus/pythonvm 
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
arrayList.hpp 635 Bytes
Copy Edit Raw Blame History
hinus authored 2018-10-05 11:54 +08:00 . key word args
#ifndef ARRAY_LIST_HPP
#define ARRAY_LIST_HPP
#include <stdio.h>
class OopClosure;
template <typename T>
class ArrayList {
private:
int _length;
T* _array;
int _size;
void expand();
public:
ArrayList(int n = 8);
void add(T t);
void insert(int index, T t);
T get(int index);
void set(int index, T t);
int size();
int length();
int index(T t);
T* value() { return _array; }
T pop();
void delete_index(int index);
void* operator new(size_t size);
void oops_do(OopClosure* closure);
};
class HiObject;
typedef ArrayList<HiObject*>* ObjList;
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/LearningTogether/pythonvm.git
git@gitee.com:LearningTogether/pythonvm.git
LearningTogether
pythonvm
pythonvm
master

Search