basic_ostream::basic_ostream
建構 basic_ostream 物件。
explicit basic_ostream(
basic_streambuf<_Elem, _Tr> *_Strbuf,
bool _Isstd = false
);
basic_ostream(
basic_ostream&& _Right
);
參數
_Strbuf
型別 basic_streambuf物件。_Isstd
true ,如果這是一個標準資料流,否則, false。_Right
在型別的物件 basic_ostreamrvalue 參考。
備註
第一個建構函式會呼叫 init初始化基底類別 (_Strbuf)。 第二個建構函式會呼叫 basic_ios::move初始化基底類別(_Right)。
範例
basic_ofstream::basic_ofstream 。請參閱範例進一步了解輸出資料流。
需求
標題: <ostream>
命名空間: std