MCPcopy Create free account
hub / github.com/EricPengShuai/Interview / SeqStack

Method SeqStack

base_code/template.cpp:40–44  ·  view source on GitHub ↗

构造和析构函数名不用加 ,其它出现模板的地方都加上类型参数列表

Source from the content-addressed store, hash-verified

38public:
39 // 构造和析构函数名不用加 <T>,其它出现模板的地方都加上类型参数列表
40 SeqStack(int size = 10)
41 : _pstack(new T[size])
42 , _top(0)
43 , _size(size)
44 {}
45
46 ~SeqStack() {
47 delete []_pstack;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected