MCPcopy Create free account
hub / github.com/Lwhyz/workspace / SmallTask

Class SmallTask

test/test_function.cc:7–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace std;
6
7class SmallTask {
8public:
9 SmallTask() {
10 cout<<"SmallTask: construct"<<endl;
11 }
12 SmallTask(const SmallTask&) {
13 cout<<"SmallTask: copy construct"<<endl;
14 }
15 SmallTask(SmallTask&&) {
16 cout<<"SmallTask: move construct"<<endl;
17 }
18 ~SmallTask() {
19 cout<<"SmallTask: distruct"<<endl;
20 }
21 void operator()() {
22 cout<<"SmallTask: run"<<endl;
23 }
24private:
25 char a[64 - 2 * sizeof(void*)];
26};
27
28class BigTask {
29public:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68