We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
A4-7-1
Decrement cannot lead to wrap-around since the container is checked for emptiness.
class container { bool empty() { return num_items_ == 0; } void erase() { if (empty()) return; num_items_--; } std::size_t num_items_ = 0; };
Status