Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricPengShuai/Interview
/ Task
Method
Task
practice/unique_ptr_ex.cpp:14–16 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
12
struct Task {
13
int mId;
14
Task(int id ) :mId(id) {
15
cout <<
"Task::Constructor"
<< id << endl;
16
}
17
~Task() {
18
cout <<
"Task::Destructor"
<< this->mId << endl;
19
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected