c++缓冲区std::wstringbuf

参考:http://www.cplusplus.com/reference/sstream/wstringbuf/

class
<sstream>

std::wstringbuf

typedef basic_stringbuf<wchar_t> wstringbuf;
String stream buffer (wide)

Stream buffer to read from and write towstringobjects.
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 awstring object, or copied to one, using memberstr.
Access to the internal sequence of characters is given to streams by means of the interface offered by the virtual members inherited fromwstreambuf that are overriden in this class:

Member types

member typedefinition
char_type wchar_t
traits_type char_traits<wchar_t>
allocator_type allocator<wchar_t>
int_type wint_t
pos_type wstreampos
off_type streamoff

Public member functions

Note: The references to the members of its basic template (basic_stringbuf) are linked here.

Public member functions inherited fromwstreambuf

Locales:

Buffer management and positioning:

Input functions (get):

Output functions (put):

Protected virtual function overrides

Note: The references to the members of its basic template (basic_stringbuf) are linked here.

The class also inherits other protected members that are non-virtual or not overridden. See base classwstreambuf for more details.

原文地址:https://www.cnblogs.com/MCSFX/p/11506565.html