std::basic_streambuf::pubseekpos
性病:基本[医]Streambuf::pubSekpos,std::basic[医]流光::寻觅者
pos_type pubseekpos( pos_type pos, ios_base::openmode which = ios_base::in | ios_base::out | (1) | |
---|---|---|
protected: virtual pos_type seekpos( pos_type pos, ios_base::openmode which = ios_base::in | ios_base::out | (2) | |
将输入和/或输出序列的位置指示器设置为绝对位置。
1%29次电话seekpos(pos, which)
最派生的类。
2%29此函数的基类版本没有任何影响。派生类可以重写此函数以允许位置指示器的绝对定位。
参数
pos | - | absolute position to set the position indicator to. |
---|---|---|
which | - | defines which of the input and/or output sequences to affect. It can be one or a combination of the following constants: Constant Explanation in affect the input sequence out affect the output sequence |
Constant | Explanation | |
in | affect the input sequence | |
out | affect the output sequence |
返回值
1%29seekpos(pos, which)
...
2%29由位置指示器定义的最终绝对位置。基类版本返回pos_type(off_type(-1))
...
例
另见
pubseekoff | invokes seekoff() (public member function) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
http://en.cppreference.com/w/cpp/io/basic[医]Streambuf/pubsekpos