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]
참고 항목
|
채움 문자를 변경합니다
(function template) |