[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Deallokering og flushing af strstream-buffer



Emil Zethen wrote:

>strstream streng_stream;
>Hvordan flusher jeg bufferen?

At "flushe" kræver en "sink" hvilket ::strstreambuf ikke har!

Muligheden for at fjerne data fra en ::strstream var så vidt jeg husker 
fra X3J16 oprindeligt ikke muligt.

Afhængigt af din implementation *burde* følgende opnå den ønskede effekt:

streng_stream.rdbuf()->str("");

>På forhånd tak.
Det er absolut *ikke* sikkert at det virker hos dig!
(::strstream er "depreciated"!)

Med venlig hilsen
Nils Åke Ljunggren.


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *