std::streamoff
Defined in header <ios> | | |
|---|---|---|
typedef /*unspecified*/ streamoff; | | |
类型std::streamoff一种有符号的完整类型,其大小足以表示操作系统支持的最大文件大小。通常,这是long long...
它用于表示类型的流位置%28值的偏移量。std::fpos29%。阿std::streamoff价值-1还用来表示某些I/O库函数的错误条件。
与性病的关系::
- 两者的区别
std::fpos对象是类型的值。std::streamoff
- 类型值
std::streamoff可加或减std::fpos产生不同的std::fpos...
- 类型值
std::fpos隐式可转换为std::streamoff%28转换结果是文件%29开头的偏移量。
- 类型值
std::fpos从类型的值可构造std::streamoff
另见
fpos | represents absolute position in a stream or a file (class template) |
|---|---|
seekg | sets the input position indicator (public member function of std::basic_istream) |
seekp | sets the output position indicator (public member function of std::basic_ostream) |
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

