Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShiqiYu/CPP
/ MyVector
Method
MyVector
week13/examples/specialization.cpp:11–14 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
9
T * data;
10
public:
11
MyVector(size_t length): length(length)
12
{
13
data = new T[length]{};
14
}
15
~MyVector()
16
{
17
delete [] data;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected