Difference between revisions of "cpp/io/ios base"
m (a couple corrections to what I just wrote) |
m (fix dtor name) |
||
Line 11: | Line 11: | ||
{{li|2}} control information: flags that control formatting of both input and output sequences and the imbued locale | {{li|2}} control information: flags that control formatting of both input and output sequences and the imbued locale | ||
{{li|3}} private storage: indexed extensible data structure that allows both {{c|long}} and {{c|void*}} members, which may be implemented as two arbitrary-length arrays or a single array of two-element structs or another container. | {{li|3}} private storage: indexed extensible data structure that allows both {{c|long}} and {{c|void*}} members, which may be implemented as two arbitrary-length arrays or a single array of two-element structs or another container. | ||
− | {{li|4}} callbacks: arbitrary number of user-defined functions to be called from imbue(), copyfmt(), and ~ | + | {{li|4}} callbacks: arbitrary number of user-defined functions to be called from imbue(), copyfmt(), and ~ios_base() |
{{li end}} | {{li end}} | ||
Revision as of 06:44, 25 April 2012
Template:cpp/io/ios base/sidebar
Defined in header <ios>
|
||
class ios_base; |
||
The class ios_base
is a multipurpose class that serves as the base class for all I/O stream classes. It maintains several kinds of data:
Typical implementation holds member constants corresponding to all values of fmtflags, iostate, openmode, and seekdir shown below, member variables to maintain current precision, width, and formatting flags, the exception mask, the buffer error state, a resizeable container holding the callbacks, the currently imbued locale, the private storage, and a static integer variable for xalloc().
Contents |
Member functions
Template:tdcl list begin Template:tdcl list h1 Template:tdcl list hitem Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list template Template:tdcl list h2 Template:tdcl list hitem Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list item Template:tdcl list end