다음을 통해 공유


operator<<(<string>)

A template function that writes a string into the output stream.

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
    The output stream being written to.

  • _Str
    The string to be entered into the output stream.

반환 값

Writes the value of the specified string to the output stream _Ostr.

설명

The template function overloads operator<< to insert an object _Str of template class basic_string into the stream _Ostr. The function effectively returns _Ostr.write( _Str.c_str, _Str.size).

요구 사항

헤더: <string>

네임스페이스: std

참고 항목

참조

string::operator<<