std::basic_spanbuf<CharT,Traits>:: seekpos
|
protected
:
pos_type seekpos
(
pos_type sp,
std::
ios_base
::
openmode
which
=
|
(C++23以降) | |
可能であれば、次のポインタをget領域および/またはput領域の
sp
で示される位置に再配置します。
return seekoff ( off_type ( sp ) , std:: ios_base :: beg , which ) ; と等価です。
目次 |
パラメータ
| sp | - |
ストリーム位置、
seekoff()
または
seekpos()
によって取得されるもの
|
||||||
| which | - |
入力シーケンス、出力シーケンス、またはその両方が影響を受けるかを定義する。以下の定数の1つまたは組み合わせを指定可能:
|
戻り値
sp
成功時、または
pos_type
(
off_type
(
-
1
)
)
失敗時。
注記
seekpos()
は
std::basic_streambuf::pubseekpos()
によって呼び出され、これは単一引数バージョンの
std::basic_istream::seekg()
および
std::basic_ostream::seekp()
によって呼び出されます。
例
|
このセクションは不完全です
理由: 例がありません |
関連項目
|
seekposを呼び出す
seekpos
(
)
(
std::basic_streambuf<CharT,Traits>
の公開メンバ関数)
|
|
|
[virtual]
|
絶対アドレス指定を使用して入力シーケンス、出力シーケンス、またはその両方の次のポインタを再配置する
(
std::basic_stringbuf<CharT,Traits,Allocator>
の仮想保護メンバ関数)
|
|
[virtual]
|
絶対アドレス指定を使用して入力シーケンス、出力シーケンス、またはその両方の次のポインタを再配置する
(
std::strstreambuf
の仮想保護メンバ関数)
|