Closed
Description
The C++ core guidelines recommend using empty()
methods where available, because this makes the containers more generic, e.g. you don't have to know that an empty container means the size is 0.
We should add empty()
methods that return size() > 0
.
We should probably use empty()
rather than is_empty()
to match the std::vector
APIs, when in doubt I have been trying to stick to that.
Metadata
Metadata
Assignees
Labels
No labels