Compartilhar via


multiset::max_size

Retorna o comprimento máximo do multiset.

size_type max_size( ) const;

Valor de retorno

O comprimento máximo possível de multiset.

Exemplo

// multiset_max_size.cpp
// compile with: /EHsc
#include <set>
#include <iostream>

int main( )
{
   using namespace std;   
   multiset <int> ms1;
   multiset <int>::size_type i;

   i = ms1.max_size( );   
   cout << "The maximum possible length "
        << "of the multiset is " << i << "." << endl;
}

Saída de Exemplo

A saída a seguir é para x86.

The maximum possible length of the multiset is 1073741823.

Requisitos

defineCabeçalho: <>

Namespace: std

Consulte também

Referência

Classe multiset

Biblioteca de Modelos Padrão