std:: hash <std::type_index>
From cppreference.net
<
cpp
|
types
|
type index
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Type support
| Basic types | |||||||||||||||||||||
| Fixed width integer types (C++11) | |||||||||||||||||||||
| Fixed width floating-point types (C++23) | |||||||||||||||||||||
|
|||||||||||||||||||||
| Numeric limits | |||||||||||||||||||||
| C numeric limits interface | |||||||||||||||||||||
| Runtime type information | |||||||||||||||||||||
|
|||||||||||||||||||||
std::type_index
| Member functions | ||||
| Helper classes | ||||
|
hash
<std::type_index>
(C++11)
|
|
헤더 파일에 정의됨
<typeindex>
|
||
|
template
<>
struct
hash
<
std::
type_index
>
;
|
(C++11부터) | |
std::hash 의 std::type_index 에 대한 템플릿 특수화는 사용자가 std::type_index 타입 객체의 해시 값을 얻을 수 있도록 합니다.
멤버 operator ( ) 는 실질적으로 hash_code() 와 동일한 값을 반환합니다.
참고 항목
|
해시 코드를 반환합니다
(public member function) |