Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 2.23 KB

strstream.md

File metadata and controls

51 lines (37 loc) · 2.23 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: <strstream>
<strstream>
11/04/2016
<strstream>
strstream header
eaa9d0d4-d217-4f28-8a68-9b9ad7b1c0f5

<strstream>

Defines several classes that support iostreams operations on sequences stored in an allocated array of char object. Such sequences are easily converted to and from C strings.

Requirements

Header: <strstream>

Namespace: std

Remarks

Objects of type strstream work with char *, which are C strings. Use <sstream> to work with objects of type basic_string.

Note

The classes in <strstream> are deprecated. Consider using the classes in <sstream> instead.

Members

Classes

Name Description
strstreambuf Class The class describes a stream buffer that controls the transmission of elements to and from a sequence of elements stored in a char array object.
istrstream Class The class describes an object that controls extraction of elements and encoded objects from a stream buffer of class strstreambuf.
ostrstream Class The class describes an object that controls insertion of elements and encoded objects into a stream buffer of class strstreambuf.
strstream Class The class describes an object that controls insertion and extraction of elements and encoded objects using a stream buffer of class strstreambuf.

Functions

void freeze(bool freezefl = true);
char* str();
int pcount();

See also

<strstream>
Header Files Reference
Thread Safety in the C++ Standard Library
iostream Programming
iostreams Conventions