Namespaces
Variants

std::hash<std::type_index>

cppreference.net에서 가져옴
 
 
유틸리티 라이브러리
일반 유틸리티
관계 연산자 (C++20에서 폐지됨)
정수 비교 함수
(C++20)(C++20)(C++20)    
(C++20)
교환 및 타입 연산
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
공통 어휘 타입
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)



 
 
 
헤더 <typeindex>
template<> struct hash<std::type_index>;
에 정의됨 (C++11부터)

std::hash의 템플릿 특수화인 std::type_index는 사용자가 std::type_index 타입의 객체에 대한 해시를 얻을 수 있게 합니다.

멤버 operator()는 hash_code()와 동일한 값을 효과적으로 반환합니다.

참고 항목

해시 코드를 반환합니다
(public member function)