다음을 통해 공유


basic_istream Members

The following tables list the members of the basic_istream Class. For a list of members inherited by the basic_istream class, see basic_ios Members.

Reference

Constructors

basic_istream

Constructs an object of type basic_istream.

Member Functions

gcount

Returns the number of characters read during the last unformatted input.

get

Reads one or more characters from the input stream.

getline

Reads a line from the input stream.

ignore

Causes a number of elements to be skipped from the current read position.

peek

Returns the next character to be read.

putback

Puts a specified character into the stream.

read

Reads a specified number of characters from the stream and stores them in an array.

readsome

Read from buffer only.

seekg

Moves the read position in a stream.

sentry

The nested class describes an object whose declaration structures the formatted input functions and the unformatted input functions.

swap

Exchanges this basic_istream object for the provided basic_istream object parameter.

sync

Synchronizes the input device associated with the stream with the stream's buffer.

tellg

Reports the current read position in the stream.

unget

Puts the most recently read character back into the stream.

Operators

operator>>

Calls a function on the input stream or reads formatted data from the input stream.

operator=

Assigns the basic_istream on the right side of the operator to this object. This is a move assignment involving an rvalue reference that does not leave a copy behind.

See Also

Reference

basic_istream Class

basic_ios Class

Thread Safety in the Standard C++ Library

iostream Programming

iostreams Conventions

Other Resources

basic_ios Members