![]() |
Home | Libraries | People | FAQ | More |
void clear() noexcept;
Erases all elements from the container. After this call, size()
returns zero but capacity()
is unchanged. All references, pointers, or iterators referring to contained
elements are invalidated. Any past-the-end iterators are also invalidated.
Linear in size()
.
No-throw guarantee.