seekg overloads

Synopses

Declared in <bslstl_istringstream.h>

Changing the current read position.

__istream_type&
seekg(pos_type);

Seek to the absolute get position position.

BaseStream&
seekg(pos_type position);

Changing the current read position.

__istream_type&
seekg(
    off_type,
    ios_base::seekdir);

Seek relative to direction by offset characters.

BaseStream&
seekg(
    off_type offset,
    ios_base::seekdir direction);

Return Value

  • *this

  • a reference to this stream

Parameters

Name

Description

__pos

A file position object.

position

absolute position in the input sequence

__off

A file offset object.

__dir

The direction in which to seek.

offset

relative offset in the input sequence

direction

base position for the seek

Created with MrDocs