Use empty() since it should be prefered as it has, following the
standard, a constant time complexity regardless of the containter
type. The same is not guaranteed for size().
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
for (vector<hash_map<sobject_t, Object *> >::iterator i = objects.begin();
i != objects.end();
++i)
- assert(!i->size());
+ assert(i->empty());
assert(bh_lru_rest.lru_get_size() == 0);
assert(bh_lru_dirty.lru_get_size() == 0);
assert(ob_lru.lru_get_size() == 0);