unordered_set::max_size

unordered_set::max_size (최대 요소 수)

max_size()는 컨테이너가 담을 수 있는 최대 요소 개수를 돌려줘요.

출처: cppreference

본문

max_size는 시스템 또는 구현 제약으로 인해 컨테이너가 저장할 수 있는 최대 요소 개수를 반환해요.

size_type max_size() const noexcept;

반환값 (Return value)

가능한 최대 요소 개수예요.

복잡도 (Complexity)

상수 시간이에요.

더 알아보기 (Learn more)

cppreference