다음을 통해 공유


multiset::max_size

복수 집합의 최대 길이 반환합니다.

size_type max_size( ) const;

반환 값

복수 집합의 가능한 최대 길이입니다.

예제

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

샘플 출력

다음 출력에 대 한 x 86입니다.

The maximum possible length of the multiset is 1073741823.

요구 사항

헤더: <set>

네임 스페이스: std

참고 항목

참조

multiset Class

표준 템플릿 라이브러리