public member function
[C++98] void clear(); [C++11] void clear() noexcept;
This program repeats every line introduced by the user until a line contains a dot ('.'). Every newline character ('\n') triggers the repetition of the line and the clearing of the current string content.
ComplexityUnspecified, but generally constant.
Iterator validityAny iterators, pointers and references related to this object may be invalidated.
Data racesThe object is modified.
Exception safetyNo-throw guarantee: this member function never throws exceptions.