Partager via


wbuffer_convert, classe

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>

Paramètres

Paramètre

Description

Codecvt

The locale facet that represents the conversion object.

Elem

The wide-character element type.

Traits

The traits associated with Elem.

Notes

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.

Constructeurs

wbuffer_convert

Construit un objet de type wbuffer_convert.

Typedef

state_type

A type that represents the conversion state.

Fonctions membres

rdbuf

Returns the byte stream buffer.

État

Returns an object representing the state of the conversion.

Configuration requise

Header: <cvt/wbuffer>

Namespace: stdext::cvt

Voir aussi

Autres ressources

<cvt/wbuffer> membres