mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: added OStringStream reset method (closes #534)
- resets the output buffer completely - implementing what rewind was likely meant to have accomplished for many use cases. STYLE: OSHA1stream reset() for symmetry. Deprecate rewind().
This commit is contained in:
@ -52,9 +52,11 @@ int main(int argc, char *argv[])
|
||||
Info<< "overwrite with short string:" << nl
|
||||
<< os.str() << endl;
|
||||
|
||||
// os.reset();
|
||||
// Info<< "after reset:" << nl
|
||||
// << os.str() << endl;
|
||||
os.reset();
|
||||
os << "%%%% reset";
|
||||
|
||||
Info<< "after reset:" << nl
|
||||
<< os.str() << endl;
|
||||
|
||||
Info<< "End\n" << endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user