13.7. Stream Format States and Stream Manipulators

Various stream manipulators can be used to specify the kinds of formatting to be performed during stream-I/O operations. Stream manipulators control the output’s format settings. Figure 13.12 lists each stream manipulator that controls a given stream’s format state. All these manipulators belong to class ios_base. We show examples of most of these stream manipulators in the next several sections.

Image
Image

Fig. 13.12. Format state stream manipulators from <iostream>.

Get C++11 for Programmers, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.