codecvt::max_length
Devuelve el número máximo de s externa de bytenecesaria para generar un CharTypeinterno.
int max_length( ) const throw( );
Valor devuelto
el número máximo de s de bytenecesario generar un CharType.
Comentarios
La función miembro devuelve do_max_length.
Ejemplo
// codecvt_max_length.cpp
// compile with: /EHsc
#define _INTL
#include <locale>
#include <iostream>
using namespace std;
int main( )
{
locale loc( "C");//English_Britain" );//German_Germany
int res = use_facet<codecvt<char, char, mbstate_t> >
( loc ).max_length( );
wcout << res << endl;
}
Requisitos
encabezado: <configuración regional>
espacio de nombres: std