Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit c6a8213e9b.
PrevUpHomeNext
array::clear

Clear the contents.

Synopsis
void
clear();
Description

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.

Complexity

Linear in size().

Exception Safety

No-throw guarantee.


PrevUpHomeNext