Lines Matching refs:counter
105 // Static counter for use in checking ctors/dtors.
106 static std::size_t counter;
112 surf(size_t refs = 0): std::locale::facet(refs) { ++counter; }
113 ~surf() { --counter; }
132 VERIFY( counter == 0 );
135 VERIFY( counter == 1 );
139 VERIFY( counter == 1 );
144 VERIFY( counter == 1 );
147 VERIFY( counter == 1 );
150 VERIFY( counter == 0 );
159 VERIFY( counter == 0 );
162 VERIFY( counter == 1 );
166 VERIFY( counter == 1 );
171 VERIFY( counter == 1 );
174 VERIFY( counter == 1 );
177 VERIFY( counter == 1 );
181 VERIFY( counter == 1 );