When the second version is used, the contents of the controlled character sequence are initialized with a copy of parameter str.
Parameters
- which
- Specifies the openmode for the stream buffer. If (which & ios_base::in) is true, input operations are allowed, and if (which & ios_base::out) is true, output operations are allowed.
- str
- string object whose content is used to intialize the internal character sequence.
Return Value
none (constructor)Basic template member declaration
( basic_stringbuf<charT,traits,Allocator> )| 1 2 3 |
|
See also
| streambuf::streambuf | Construct object (constructor member) |
