Udostępnij za pośrednictwem


wbuffer_convert Class

Describes a stream buffer that controls the transmission of elements to and from a byte stream buffer.

template<class Codecvt,
    class Elem = wchar_t,
    class Traits = std::char_traits<Elem>
>
    class wbuffer_convert
        : public std::basic_streambuf<Elem, Traits>

Parameters

Parameter

Description

Codecvt

The locale facet that represents the conversion object.

Elem

The wide-character element type.

Traits

The traits associated with Elem.

Remarks

This template class describes a stream buffer that controls the transmission of elements of type _Elem, whose character traits are described by the class Traits, to and from a byte stream buffer of type std::streambuf.

Conversion between a sequence of Elem values and multibyte sequences is performed by an object of class Codecvt<Elem, char, std::mbstate_t>, which meets the requirements of the standard code-conversion facet std::codecvt<Elem, char, std::mbstate_t>.

An object of this template class stores:

  • A pointer to its underlying byte stream buffer

  • A pointer to the allocated conversion object (which is freed when the wbuffer_convert object is destroyed)

  • A conversion state object of type state_type.

Requirements

Header: <cvt/wbuffer>

Namespace: stdext::cvt

See Also

Other Resources

<cvt/wbuffer> Members

wbuffer_convert Members