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 an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

basic_static_string::clear

Clear the contents.

Synopsis
constexpr void
clear();
Description

Erases all characters from the string. After this call, size() returns zero.

Complexity

Linear in size().

Remarks

All references, pointers, or iterators referring to contained elements are invalidated. Any past-the-end iterators are also invalidated.


PrevUpHomeNext