<iosfwd>
The <iosfwd> header provides forward declarations of the various
I/O-related classes and templates. The forward declarations are
incomplete type declarations. (Read about complete and incomplete types
in Chapter 6.) By using <iosfwd> you can sometimes avoid
including the complete definitions of the I/O classes, and thereby save
some compilation time.
It is always safe to include <iosfwd> and any of the other I/O
headers, even if they both declare the same type.
Because <iosfwd> does not
provide any complete type declarations, this section contains only Table 13-18, which lists each
type name with a reference to the header (if any) that is required for
the complete type.
Type declaration | Header |
| |
| |
| |
| |
| |
| |
| |
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access