This class implements a standard stream buffer providing an unformatted character input sequence and an unformatted character output sequence that may be initialized or accessed using a string value.
Synopsis
Declared in <bslstl_stringbuf.h>
template<
class CHAR_TYPE,
class CHAR_TRAITS = char_traits<CHAR_TYPE>,
class ALLOCATOR = allocator<CHAR_TYPE>>
class basic_stringbuf
: public std::basic_streambuf<CHAR_TYPE, CHAR_TRAITS>
Base Classes
Name |
Description |
|
The actual work of input and output (interface). |
Type Aliases
Name |
Description |
@{ This is a non‐standard type. |
|
This |
|
This |
|
This |
|
This |
|
This |
|
This |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object. |
Assign to this object the value of the specified |
|
Return the allocator used by the underlying string to supply memory. |
|
Locale access. |
|
Looking ahead into the stream. |
|
Entry point for imbue(). |
|
Alters the stream position. |
|
Alters the stream position. |
|
Entry points for derived buffer functions. |
|
Calls virtual sync function. |
|
Getting the next character. |
|
Getting the next character. |
|
Entry point for xsgetn. |
|
Getting the next character. |
|
Pushing characters back into the input stream. |
|
Entry point for all single‐character output functions. |
|
Entry point for all single‐character output functions. |
|
|
|
Moving backwards in the input stream. |
|
Efficiently exchange the value of this object with the value of the specified |
|
Return a |
Protected Member Functions
Name |
Description |
Access to the get area. |
|
Moving the read position. |
|
|
Changes translations. |
|
|
|
|
Access to the put area. |
|
Moving the write position. |
|
|
|
|
|
|
Manipulates the buffer. |
Setting the three read area pointers. |
|
Setting the three write area pointers. |
|
|
Investigating the data available. |
|
Synchronizes the buffer arrays with the controlled sequences. |
|
Return the character at the current input position and advance the input position by 1. If no character is available at the current input position, return |
|
Return the character at the current input position, if a character is available, and |
|
|
|
Protected Data Members
Name |
Description |
Current locale setting. |
|
Start of get area. |
|
Current read area. |
|
End of get area. |
|
Start of put area. |
|
Current put area. |
|
End of put area. |
Non-Member Functions
Name |
Description |
Efficiently exchange the values of the specified |
Created with MrDocs