It is a stream buffer to read from and write to wstring objects and objects of this class maintain internally a sequence of wide characters that they use as their associated input sequence and/or associated output sequence. The internal sequence can be initialized from a wstring object, or copied to one, using member str.
Below is definition of std::wstringbuf.
typedef basic_stringbuf<wchar_t> wstringbuf;
charT − Character type.
traits − Character traits class that defines essential properties of the characters used by stream objects.
int_type − Integer Type.
Alloc − Type of the allocator object used to define the storage allocation model for the basic_string objects. By default, the allocator class template is used, which defines the simplest memory allocation model and is value-independent.
|1||(constructor)||Construct object (public member function )|
|2||(destructor)||Destruct object (public member function )|
|1||pubimbue||It is an imbue locale|
|2||getloc||It is used to get current locale|
|Sr.No.||Buffer management and positioning||Definition|
|1||pubsetbuf||It is used to set buffer array|
|2||pubseekoff||It is used to set internal position pointer to relative position|
|3||pubseekpos||It is used to set internal position pointer to absolute position|
|4||pubsync||It is used to synchronize stream buffer|
|1||in_avail||It is used to get number of character available to read|
|2||snextc||It is used to advance to next position and get character|
|3||sbumpc||It is used to get current character and advance to next position|
|4||sgetc||It is used to get current character|
|5||sgetn||It is used to get sequence of characters|
|4||sputbackc||It is used to put character back|
|5||sungetc||It is used to decrease current position|
|1||sputc||It is used to put character and advance to next position|
|2||sputn||It is used to put sequence of characters|
|1||setbuf||It is used to set buffer|
|2||seekoff||It is used to set position pointer to relative position|
|3||seekpos||It is used to set position pointer to absolute position|
|4||underflow||It is used to get character|
|5||pbackfail||It is used to put character back|
|5||overflow||It is used to put character|