unordered_multiset::begin

unordered_multiset::begin (버킷 내 첫 요소 반복자)

begin(size_type n)은 인덱스 n인 버킷의 첫 번째 요소를 가리키는 로컬 반복자(local_iterator)를 돌려줘요.

출처: cppreference

본문

begin(const size_type n)은 버킷 n의 첫 번째 요소를 가리키는 로컬 반복자를 반환해요.

local_iterator begin( size_type n );

버킷이 비어 있으면 end(n)과 같은 값을 돌려줘요. 로컬 반복자는 해당 버킷 안에서만 유효해요.

반환값 (Return value)

버킷 n의 첫 번째 요소를 가리키는 로컬 반복자예요.

복잡도 (Complexity)

상수 시간이에요.

더 알아보기 (Learn more)

cppreference