unordered_set::max_size
Gets the maximum size of the controlled sequence.
size_type max_size() const;
설명
The member function returns the length of the longest sequence that the object can control.
예제
// std_tr1__unordered_set__unordered_set_max_size.cpp
// compile with: /EHsc
#include <unordered_set>
#include <iostream>
typedef std::unordered_set<char> Myset;
int main()
{
Myset c1;
std::cout << "max_size() == " << c1.max_size() << std::endl;
return (0);
}
요구 사항
헤더: <unordered_set>
네임스페이스: std