Namespaces
Variants

std::type_index:: hash_code

From cppreference.net
Utilities library
std:: size_t hash_code ( ) const noexcept ;
(C++11부터)

연관된 std::type_info 객체의 해시 코드를 반환합니다. type_info::hash_code 을 직접 호출하는 것과 동일합니다.

목차

매개변수

(없음)

반환값

관련된 std::type_info 객체의 해시 코드입니다.

예제

결함 보고서

다음의 동작 변경 결함 보고서들은 이전에 발표된 C++ 표준에 소급 적용되었습니다.

DR 적용 대상 게시된 동작 올바른 동작
LWG 2144 C++11 type_index::hash_code 에 noexcept가 요구되지 않았음 요구됨

참고 항목

std::type_index 에 대한 해시 지원
(클래스 템플릿 특수화)