Lines Matching defs:counter
14 struct counter { struct
15 T value;
17 counter() : value() { ++ctors_; } in counter() function
18 static unsigned ctors() { return ctors_; } in ctors()
20 ~counter() { ++dtors_; } in ~counter()
21 static unsigned dtors() { return dtors_; } in dtors()
23 /* implicit */ counter(counter const& other) : value(other.value) { in counter() argument
28 counter& operator=(counter const& other) { in operator =()
34 static unsigned copies() { return ctor_copies_ + op_copies_; } in copies()
36 static counter const& eval(counter const& me) { ++me.evals_; return me; } in eval()
37 static unsigned evals() { return evals_; } in evals()
40 static unsigned ctors_; // Total constructions (including copies).
41 static unsigned dtors_;
42 static unsigned ctor_copies_;
43 static unsigned op_copies_;
44 static unsigned evals_;