basic_stringstream::str
Sets or gets the text in a string buffer without changing the write position.
basic_string<Elem, Tr, Alloc> str( ) const;
void str(
const basic_string<Elem, Tr, Alloc>& _Newstr
);
매개 변수
- _Newstr
The new string.
반환 값
Returns an object of class basic_string<Elem, Tr, Alloc>, whose controlled sequence is a copy of the sequence controlled by *this.
설명
The first member function returns rdbuf -> str. The second member function calls rdbuf -> str(_Newstr).
예제
See basic_stringbuf::str for an example that uses str.
요구 사항
Header: <sstream>
네임스페이스: std