std::ostreambuf_iterator<CharT,Traits>::operator=
來自 cppreference.com
< cpp | 迭代器 | ostreambuf 迭代器
ostreambuf_iterator& operator=( CharT c ); |
||
如果 failed() 返回 false,則透過呼叫 pbuf->sputc(c) 將字元 c 插入到關聯的流緩衝區中,其中 pbuf
是型別為 streambuf_type*
的私有成員。否則,不執行任何操作。
如果呼叫 pbuf->sputc(c) 返回 Traits::eof,則將 failed() 標誌設定為 true。
目錄 |
[編輯] 引數
c | - | 要插入的字元 |
[編輯] 返回值
*this
[編輯] 示例
本節不完整 原因:無示例 |
[編輯] 參閱
將一個字元寫入放置區並推進下一個指標 ( std::basic_streambuf<CharT,Traits> 的公共成員函式) |