cpp/io/streamoff

The type is an implementation-defined  type of sufficient size to represent the maximum possible file size supported by the operating system.

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

Relationship with std::fpos

 * the difference between two std objects is a value of type


 * a value of type may be added or subtracted from std yielding a different std.


 * a value of type std is implicitly convertible to (the conversion result is the offset from the beginning of the file).


 * a value of type std is constructible from a value of type