- 
  Notifications
 You must be signed in to change notification settings 
- Fork 70
Open
@fjatWbyT 
Description
Affected rules
- A4-7-1
Description
Decrement cannot lead to wrap-around since the container is checked for emptiness.
Example
class container { bool empty() { return num_items_ == 0; } void erase() { if (empty()) return; num_items_--; } std::size_t num_items_ = 0; };
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Triaged