Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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).

Header: <string>

Namespace: std

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.