multiset::max_size
Maximální délka multimnožina vrátí.
size_type max_size( ) const;
Vrácená hodnota
Maximální možná délka multimnožina.
Příklad
// 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;
}
Výstup ukázky
Následující výstup je pro x86.
The maximum possible length of the multiset is 1073741823.
Požadavky
Hlavička: <set>
Obor názvů: std