operator<< (<string>)
會將字串寫入至輸出資料流的樣板函式。
template<class CharType, class Traits, class Allocator>
basic_ostream<CharType, Traits>& operator<<(
basic_ostream<CharType, Traits>& _Ostr,
const basic_string<CharType, Traits, Allocator>& _Str
);
參數
_Ostr
寫入的輸出資料流。_Str
要輸入的字串寫入輸出資料流。
傳回值
要寫入輸出資料流 _Ostr寫入指定的字串值。
備註
樣板函式多載 **operator<<**插入 basic_stringsyxtdd4f(v=vs.110).md輸入資料流 _Ostr*的樣板類別物件 _Str。*函式有效地傳回 _Ostr。write(_Str。c_str, _Str。大小)。
需求
標題: <string>
命名空間: std