Searched refs:gConstructed (Results 1 – 5 of 5) sorted by relevance
15 struct Counter_base { static int gConstructed; }; member21 Counter() : data_() { ++gConstructed; } in Counter()22 Counter(const T &data) : data_(data) { ++gConstructed; } in Counter()23 Counter(const Counter& rhs) : data_(rhs.data_) { ++gConstructed; } in Counter()24 …Counter& operator=(const Counter& rhs) { ++gConstructed; data_ = rhs.data_; return *this;…26 Counter(Counter&& rhs) : data_(std::move(rhs.data_)) { ++gConstructed; } in Counter()27 … Counter& operator=(Counter&& rhs) { ++gConstructed; data_ = std::move(rhs.data_); return *this; }29 ~Counter() { --gConstructed; } in ~Counter()40 int Counter_base::gConstructed = 0;
147 Counter_base::gConstructed = 0; in main()162 assert(Counter_base::gConstructed == num); in main()165 assert(Counter_base::gConstructed == 3+num); in main()169 assert(Counter_base::gConstructed == 6+num); in main()174 assert(Counter_base::gConstructed == 6+num); in main()178 assert(Counter_base::gConstructed == 6+num); in main()182 assert(Counter_base::gConstructed == 3+num); in main()184 assert(Counter_base::gConstructed == 0); in main()
147 Counter_base::gConstructed = 0; in main()162 assert(Counter_base::gConstructed == num); in main()165 assert(Counter_base::gConstructed == 2*num); in main()169 assert(Counter_base::gConstructed == 3*num); in main()174 assert(Counter_base::gConstructed == 3*num); in main()178 assert(Counter_base::gConstructed == 3*num); in main()182 assert(Counter_base::gConstructed == 2*num); in main()184 assert(Counter_base::gConstructed == 0); in main()
153 Counter_base::gConstructed = 0; in main()168 assert(Counter_base::gConstructed == num); in main()171 assert(Counter_base::gConstructed == num+3); in main()175 assert(Counter_base::gConstructed == num+6); in main()180 assert(Counter_base::gConstructed == num+6); in main()184 assert(Counter_base::gConstructed == num+6); in main()188 assert(Counter_base::gConstructed == num+3); in main()190 assert(Counter_base::gConstructed == 0); in main()
153 Counter_base::gConstructed = 0; in main()168 assert(Counter_base::gConstructed == num); in main()171 assert(Counter_base::gConstructed == 2*num); in main()175 assert(Counter_base::gConstructed == 3*num); in main()180 assert(Counter_base::gConstructed == 3*num); in main()184 assert(Counter_base::gConstructed == 3*num); in main()188 assert(Counter_base::gConstructed == 2*num); in main()190 assert(Counter_base::gConstructed == 0); in main()