unordered_multimap::hash_function

unordered_multimap::hash_function (해시 함수 얻기)

hash_function()은 컨테이너가 사용하는 해시 함수를 돌려줘요.

출처: cppreference

본문

hash_functionstd::unordered_multimap이 버킷을 결정할 때 사용하는 해시 함수 객체를 반환해요.

hasher hash_function() const;

키를 인자로 받아 size_t 해시 값을 돌려주는 함수 객체예요. 사용자 정의 해시 함수를 쓴 경우 그 함수가 반환돼요.

반환값 (Return value)

컨테이너가 사용하는 해시 함수예요.

복잡도 (Complexity)

상수 시간이에요.

더 알아보기 (Learn more)

cppreference