std::basic_ios<CharT,Traits>:: fill
From cppreference.net
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_ios
| Member functions | ||||
| State functions | ||||
| Formatting | ||||
|
basic_ios::fill
|
||||
| Miscellaneous | ||||
| Protected member functions | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
|
CharT fill
(
)
const
;
|
(1) | |
|
CharT fill
(
CharT ch
)
;
|
(2) | |
指定されたフィールド幅まで出力変換を埋めるために使用されるフィル文字を管理します。
1)
現在の埋め文字を返します。
2)
フィル文字を
ch
に設定し、フィル文字の前の値を返します。
目次 |
パラメータ
| ch | - | フィル文字として使用する文字 |
戻り値
関数呼び出し前のフィル文字。
例
このコードを実行
出力:
With default setting : [ 40] Replaced ' ' with 'x': [xxxxxxxx40]
関連項目
|
フィル文字を変更する
(関数テンプレート) |