26 if (vectorToCheck.capacity() > limit) {
27 B2DEBUG(29,
"Capacity of vector too large, create fresh vector and swap.");
29 std::swap(vectorToCheck, tmp);
32 vectorToCheck.clear();
33 vectorToCheck.reserve(limit / 4);
void checkResizeClear(std::vector< T > &vectorToCheck, uint limit)
Check capacity of a vector and create a fresh one if capacity too large If the capacity of a std::vec...
Abstract base class for different kinds of events.