다음을 통해 공유


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.

설명

함수 템플릿의 오버 로드 운영자 << _ 개체를 삽입 하려면Str 템플릿 클래스의 basic_string 에 스트림 _Ostr. 효과적으로 반환 _Ostr.write( _Str.c_str, _Str.size).

요구 사항

헤더: <string>

네임 스페이스: std

참고 항목

참조

string::operator<<