istrstream::istrstream

Constructs an object of type istrstream.

explicit istrstream(
    const char *_Ptr
);
explicit istrstream(
    char *_Ptr
);
istrstream(
    const char *_Ptr, 
    streamsize _Count
);
istrstream(
    char *_Ptr, 
    int _Count
);

Parameters

  • _Count
    The length of the buffer (_Ptr).

  • _Ptr
    The contents with which the buffer is initialized.

Remarks

All the constructors initialize the base class by calling istream(sb), where sb is the stored object of class strstreambuf. The first two constructors also initialize sb by calling strstreambuf( (const char *)_Ptr, 0 ). The remaining two constructors instead call strstreambuf( (const char *)_Ptr, _Count ).

Requirements

Header: <strstream>

Namespace: std

See Also

Reference

istrstream Class

iostream Programming

iostreams Conventions