hash 구조체
클래스 템플릿은 해당 메서드를 반환으로 정의합니다 val.hash_code()
. 메서드는 type_index 형식의 맵 값을 인덱스 값의 분포로 매핑하는 데 사용하는 해시 함수를 정의합니다.
구문
template <> struct hash<type_index>
: public unary_function<type_index, size_t>
{ // hashes a typeinfo object
size_t operator()(type_index val) const;
};
특수 형식
<system_error>
template <class T> struct hash;
template <> struct hash<error_code>;
template <> struct hash<error_condition>;
참고 항목
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기