Compartilhar via


codecvt::max_length

Returns the maximum number of external Bytes necessary to produce one internal CharType.

int max_length( ) const throw( );

Return Value

The maximum number of Bytes necessary to produce one CharType.

Remarks

The member function returns do_max_length.

Example

// 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

Requirements

Header: <locale>

Namespace: std

See Also

Reference

codecvt Class