std::basic_streambuf<CharT,Traits>:: eback, gptr, egptr
From cppreference.net
<
cpp
|
io
|
basic streambuf
C++
Input/output library
| 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 | ||||
| Error category interface | ||||
|
(C++11)
|
||||
|
(C++11)
|
std::basic_streambuf
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
char_type
*
eback
(
)
const
;
|
(1) | |
|
char_type
*
gptr
(
)
const
;
|
(2) | |
|
char_type
*
egptr
(
)
const
;
|
(3) | |
タグ内のコードは翻訳対象外
- 数値ラベル(1)(2)(3)はそのまま保持
取得領域を定義するポインタを返します。
1) get領域の先頭へのポインタを返します。
2) 現在の文字( get pointer )へのポインタを取得領域から返します。
3) ゲット領域の終端の1つ先のポインタを返します。
目次 |
パラメータ
(なし)
戻り値
1) get領域の先頭へのポインタ。
2) 現在の文字へのポインタ ( get pointer ) が指すゲット領域内の位置。
3) getエリアの終端を1つ超えた位置のポインタ。
注記
「gptr」および「egptr」という名前が取得領域を指すのに対し、「eback」という名前はプットバック領域の終端を指します:
gptr
から後方にステップすることで、
eback
まで文字をプットバックできます。
例
|
このセクションは不完全です
理由: 例がありません |
関連項目
|
出力領域の先頭、現在の文字、および終端へのポインタを返す
(protected member function) |