Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
file::seek

(Inherited from file_stdio)

Adjust the current position in the open file.

Synopsis
void
seek(
    std::uint64_t offset,
    error_code& ec);
Parameters

Name

Description

offset

The offset in bytes from the beginning of the file

ec

Set to the error, if any occurred


PrevUpHomeNext