| Defined in header <ios> | ||
|---|---|---|
typedef /*unspecified*/ streamoff; |
The type std::streamoff is a signed integral type of sufficient size to represent the maximum possible file size supported by the operating system. Typically, this is a typedef to long long.
It is used to represent offsets from stream positions (values of type std::fpos). A std::streamoff value of -1 is also used to represent error conditions by some of the I/O library functions.
Relationship with std::fpos
- the difference between two
std::fposobjects is a value of typestd::streamoff - a value of type
std::streamoffmay be added or subtracted fromstd::fposyielding a differentstd::fpos. - a value of type
std::fposis implicitly convertible tostd::streamoff(the conversion result is the offset from the beginning of the file). - a value of type
std::fposis constructible from a value of typestd::streamoff
See also
| represents absolute position in a stream or a file (class template) | |
| sets the input position indicator (public member function of std::basic_istream) | |
| sets the output position indicator (public member function of std::basic_ostream) |
Please login to continue.