cpp/string/basic string/clear

Removes all characters from the string as if by executing.

All pointers, references, and iterators are invalidated.

Parameters
(none)

Return value
(none)

Complexity
Linear in the size of the string, although existing implementations operate in constant time.