Namespaces
Variants

std::ostreambuf_iterator<CharT,Traits>:: operator=

From cppreference.net
Iterator library
Iterator concepts
Iterator primitives
Algorithm concepts and utilities
Indirect callable concepts
Common algorithm requirements
(C++20)
(C++20)
(C++20)
Utilities
(C++20)
Iterator adaptors
Range access
(C++11) (C++14)
(C++14) (C++14)
(C++11) (C++14)
(C++14) (C++14)
(C++17) (C++20)
(C++17)
(C++17)
ostreambuf_iterator & operator = ( CharT c ) ;

만약 failed() false 를 반환하면, c 문자를 연관된 스트림 버퍼에 pbuf - > sputc ( c ) 호출을 통해 삽입합니다. 여기서 pbuf streambuf_type* 타입의 private 멤버입니다. 그렇지 않으면 아무 작업도 수행하지 않습니다.

pbuf - > sputc ( c ) 호출이 Traits :: eof 를 반환하면 failed() 플래그를 true로 설정합니다.

목차

매개변수

c - 삽입할 문자

반환값

* this

예제

참고 항목

put area에 한 문자를 기록하고 다음 포인터를 전진시킵니다
( std::basic_streambuf<CharT,Traits> 의 public member function)