Namespaces
Variants

std:: emit_on_flush, std:: noemit_on_flush

From cppreference.net
< cpp ‎ | io ‎ | manip
Input/output manipulators
Floating-point formatting
Integer formatting
Boolean formatting
Field width and fill control
Other formatting
Whitespace processing
Output flushing
emit_on_flush noemit_on_flush
(C++20) (C++20)
Status flags manipulation
Time and money I/O
(C++11)
(C++11)
(C++11)
(C++11)
Quoted manipulator
(C++14)
헤더 파일에 정의됨 <ostream>
template < class CharT, class Traits >
std:: basic_ostream < CharT, Traits > & emit_on_flush ( std:: basic_ostream < CharT, Traits > & os ) ;
(1) (C++20부터)
template < class CharT, class Traits >
std:: basic_ostream < CharT, Traits > & noemit_on_flush ( std:: basic_ostream < CharT, Traits > & os ) ;
(2) (C++20부터)

만약 os. rdbuf ( ) 가 실제로 std:: basic_syncbuf < CharT, Traits, Allocator > buf 를 가리키는 경우, 플러시 시 데이터를 기본 스트림 버퍼로 전송하는지 여부를 전환합니다:

1) 호출 buf. set_emit_on_sync ( true )
2) 호출 buf. set_emit_on_sync ( false )

그렇지 않으면, 이러한 조작자들은 아무런 효과가 없습니다.

이것은 출력 전용 I/O 조정자이며, out << std :: emit_on_flush 와 같은 표현식으로 호출될 수 있습니다. 여기서 out std::basic_ostream 타입의 출력 스트림입니다.


목차

매개변수

os - 출력 스트림에 대한 참조

반환값

os (조작 후 스트림에 대한 참조)

예제

참고 항목

현재 emit-on-sync 정책을 변경합니다
( std::basic_syncbuf<CharT,Traits,Allocator> 의 public 멤버 함수)