1 Star 0 Fork 0

天高云淡/48_python_study

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
stack.cpp 434 Bytes
一键复制 编辑 原始数据 按行查看 历史
天高云淡 提交于 2024-12-09 20:23 +08:00 . pythonvm
//
// Created by Kosho on 2020/9/18.
//
#include "util/stack.hpp"
template<>
void Stack<HiObject *>::oops_do(OopClosure *f) {
for (int i = 0; i < _len; i++) {
f->do_oop(&vector[i]);
}
}
template<typename T>
void Stack<T>::copy(const Stack<T> *stack) {
_size = stack->_size;
_len = stack->_len;
for (int i = 0; i < _size; i++) {
vector[i] = stack->vector[i];
}
}
template
class Stack<Block>;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/linux2014/48_python_study.git
git@gitee.com:linux2014/48_python_study.git
linux2014
48_python_study
48_python_study
master

搜索帮助