次の方法で共有


<istream>

 

The latest version of this topic can be found at <istream>.

Defines the template class basic_istream, which mediates extractions for the iostreams, and the template class basic_iostream, which mediates both insertions and extractions. The header also defines a related manipulator. This header file is typically included for you by another iostreams header; you rarely have to include it directly.

Syntax

#include <istream>  
  

Typedefs

iostream A type basic_iostream specialized on char.
istream A type basic_istream specialized on char.
wiostream A type basic_iostream specialized on wchar.
wistream A type basic_istream specialized on wchar.

Manipulators

ws Skips white space in the stream.
swap Exchanges two stream objects.

Operators

operator>> Extracts characters and strings from the stream.

Classes

basic_iostream A stream class that can do both input and output.
basic_istream The template class describes an object that controls extraction of elements and encoded objects from a stream buffer with elements of type Elem, also known as char_type, whose character traits are determined by the class Tr, also known as traits_type.

See Also

Thread Safety in the C++ Standard Library
iostream Programming
iostreams Conventions