User Tools

Site Tools


quickref:c_stl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

quickref:c_stl [2013/05/28 22:31]
andy created
quickref:c_stl [2013/05/29 12:37] (current)
andy
Line 3: Line 3:
 ===== Streams ===== ===== Streams =====
  
-C++ stream header files:+For some introductory thoughts, see [[http://​www.andy-pearce.com/​blog/​posts/​2013/​Apr/​the-dark-arts-of-c-streams/​|my blog post]] on the subject. 
 + 
 +==== Key Points ==== 
 + 
 +  * Streams are a serial character-based abstract interface to underlying storage of various types. 
 +  * They don't support random access, but may support seeking. 
 +  * Writing is performed with ''<<''​ and reading with ''>>''​ where the stream is always on the LHS. 
 +  * Any class can be made streamable by providing appropriate overloads of these operators. 
 + 
 +==== Header Files ====
  
 ^ ''​iostream''​ | Standard streams: ''​cout'',​ ''​cin'',​ ''​cerr'',​ ''​clog'',​ etc. | ^ ''​iostream''​ | Standard streams: ''​cout'',​ ''​cin'',​ ''​cerr'',​ ''​clog'',​ etc. |
Line 9: Line 18:
 ^ ''​sstream''​ | String streams: ''​istringstream'',​ ''​ostringstream'',​ ''​stringstream''​. | ^ ''​sstream''​ | String streams: ''​istringstream'',​ ''​ostringstream'',​ ''​stringstream''​. |
 ^ ''​streambuff''​ | Low-level buffers on which streams are built, base is ''​streambuff''​. | ^ ''​streambuff''​ | Low-level buffers on which streams are built, base is ''​streambuff''​. |
- 
quickref/c_stl.1369780306.txt.gz · Last modified: 2013/05/28 22:31 by andy