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>
}
void _convert_paxos() {
- assert(gvs.size() > 0);
+ assert(!gvs.empty());
set<version_t>::reverse_iterator rit = gvs.rbegin();
version_t highest_gv = *rit;
common_init_finish(g_ceph_context);
g_ceph_context->_conf->apply_changes(NULL);
- if (args.size() < 1) {
+ if (args.empty()) {
usage(our_name);
return 1;
}