初始化 (1) | explicit basic_ostream (basic_streambuf<char_type,traits_type>* sb); |
---|
初始化 (1) | explicit basic_ostream (basic_streambuf<char_type,traits_type>* sb); |
---|---|
複製 (2) | basic_ostream& (const basic_ostream&) = delete; |
移動 (3) | protected: basic_ostream& (basic_ostream&& x); |
|
|
test.txt
。然後將緩衝區作為引數傳遞給 ostream 建構函式,將其與流關聯。ostream
類物件很少被直接構造。通常會使用派生類(如標準的 basic_ofstream 和 basic_ostringstream)。