Does a stream flush itself when destroyed?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MrPickle
    New Member
    • Jul 2008
    • 100

    Does a stream flush itself when destroyed?

    Does a stream flush itself when it is destroyed? If so, is it best just to let the stream flush itself and only flush it when you want it's buffer synchronizing?
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Streams are flushed in the destructor of the stream object.

    You can flush a stream yourself,if needed, during runtime.

    BTW: a flush applies only to an output stream.

    Comment

    Working...