I/O manipulators | ||||
Print functions(C++23) | ||||
C-style I/O | ||||
Buffers | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++20) | ||||
Streams | ||||
Abstractions | ||||
File I/O | ||||
String I/O | ||||
Array I/O | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
Synchronized Output | ||||
(C++20) | ||||
Types | ||||
streamoff | ||||
Error category interface | ||||
(C++11) | ||||
(C++11) |
Defined in header <ios> | ||
typedef/*implementation-defined*/ streamoff; | ||
The typestd::streamoff
is an implementation-definedsigned 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 forlonglong.(since C++11)
It is used to represent offsets from stream positions (values of typestd::fpos). Astd::streamoff
value constructed from-1 is also used to represent error conditions by some of the I/O library functions.
std::streamoff
std::streamoff
may be added or subtracted fromstd::fpos yielding a differentstd::fpos.std::streamoff
(the conversion result is the offset from the beginning of the file).std::streamoff
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] |