Home | History | Annotate | Download | only in util.smartptr.shared.create

Lines Matching refs:count

27     static int count;
28 Zero() {++count;}
29 Zero(Zero const &) {++count;}
30 ~Zero() {--count;}
33 int Zero::count = 0;
37 static int count;
39 explicit One(int v) : value(v) {++count;}
40 One(One const & o) : value(o.value) {++count;}
41 ~One() {--count;}
44 int One::count = 0;
49 static int count;
51 Two(int v, int) : value(v) {++count;}
52 Two(Two const & o) : value(o.value) {++count;}
53 ~Two() {--count;}
56 int Two::count = 0;
60 static int count;
62 Three(int v, int, int) : value(v) {++count;}
63 Three(Three const & o) : value(o.value) {++count;}
64 ~Three() {--count;}
67 int Three::count = 0;
75 assert(Zero::count == 1);
77 assert(Zero::count == 0);
81 assert(One::count == 1);
84 assert(One::count == 0);
88 assert(Two::count == 1);
91 assert(Two::count == 0);
95 assert(Three::count == 1);
98 assert(Three::count == 0);
108 assert(Two::count == 1);
111 assert(Two::count == 0);