Compartilhar via


codecvt::max_length

Retorna o número máximo de Byteexterno é necessário gerar um CharTypeinterno.

int max_length( ) const throw( );

Valor de retorno

O número máximo de Byteé necessário gerar um CharType.

Comentários

A função de membro retorna do_max_length.

Exemplo

// 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;
}
1

Requisitos

localidade <deCabeçalho: >

Namespace: std

Consulte também

Referência

Classe codecvt