模板函数该字符串写入到输出流。
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<< 插入对象 _Str 模板选件 basic_string 到流 _*Ostr 中。*函数返回有效_Ostr。write(_Str。c_str,_Str。范围)。
要求
标头: <string>
命名空间: std