std::basic_syncbuf<CharT,Traits,Allocator>:: set_emit_on_sync
From cppreference.net
<
cpp
|
io
|
basic syncbuf
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_syncbuf
| Public member functions | ||||
|
(C++20)
|
||||
|
(C++20)
|
||||
|
(C++20)
|
||||
|
(C++20)
|
||||
|
(C++20)
|
||||
|
(C++20)
|
||||
|
(C++20)
|
||||
|
basic_syncbuf::set_emit_on_sync
(C++20)
|
||||
| Protected member functions | ||||
|
(C++20)
|
||||
| Non-member functions | ||||
|
(C++20)
|
|
void
set_emit_on_sync
(
bool
b
)
noexcept
;
|
||
현재 동기화 시 방출 정책을 변경합니다.
값 false (기본값)은 모든 플러시가 emit 호출까지 연기됨을 나타냅니다.
값 true 는 플러시가 즉시 적용되도록 합니다.
매개변수
| b | - | 동기화 시 방출 정책에 대한 새 값 |
예제
|
이 섹션은 불완전합니다
이유: 예제가 없음 |
참고 항목
|
[virtual]
|
연관된 문자 시퀀스와 버퍼를 동기화합니다
(
std::basic_streambuf<CharT,Traits>
의
virtual protected 멤버 함수)
|
|
내부 버퍼 전체를 래핑된 streambuf로 원자적으로 전송합니다
(public 멤버 함수) |
|
|
(C++20)
|
스트림의
basic_syncbuf
가
flush 시 emit할지 여부를 제어합니다
(함수 템플릿) |