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) | |
Verwaltet das Füllzeichen, das verwendet wird, um die Ausgabekonvertierungen auf die angegebene Feldbreite aufzufüllen.
1)
Gibt das aktuelle Füllzeichen zurück.
2)
Setzt das Füllzeichen auf
ch
, gibt den vorherigen Wert des Füllzeichens zurück.
Inhaltsverzeichnis |
Parameter
| ch | - | das Zeichen, das als Füllzeichen verwendet werden soll |
Rückgabewert
Das Füllzeichen vor dem Aufruf der Funktion.
Beispiel
Diesen Code ausführen
Ausgabe:
With default setting : [ 40] Replaced ' ' with 'x': [xxxxxxxx40]
Siehe auch
|
ändert das Füllzeichen
(Funktions-Template) |