std::streamoff - cppreference.com (original) (raw)

| Defined in header | | | | -------------------------------------------------------------- | | | | typedef /*implementation-defined*/ streamoff; | | |

The type std::streamoff is an implementation-defined signed integral(since C++11) type of sufficient size to represent the maximum possible file size supported by the operating system. Typically, this is an alias for long long.(since C++11)

It is used to represent offsets from stream positions (values of type std::fpos). A std::streamoff value constructed from -1 is also used to represent error conditions by some of the I/O library functions.

[edit] Relationship with std::fpos

[edit] See also

| | represents absolute position in a stream or a file (class template) [edit] | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | | sets the input position indicator (public member function of std::basic_istream<CharT,Traits>) [edit] | | | sets the output position indicator (public member function of std::basic_ostream<CharT,Traits>) [edit] |