std::type_index:: hash_code
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 | ||||
|
type_index::hash_code
|
||||
| Helper classes | ||||
|
(C++11)
|
|
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가 요구되지 않았음
|
요구됨 |
참고 항목
|
(C++11)
|
std::type_index
에 대한 해시 지원
(클래스 템플릿 특수화) |