MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
hash< T * > 模板结构体 参考

指针类型的哈希函数特化 更多...

#include <hash.hpp>

Public 成员函数

MSTL_NODISCARD MSTL_CONSTEXPR20 size_t operator() (const T *ptr) const noexcept
 指针哈希运算符

详细描述

template<typename T>
struct hash< T * >

指针类型的哈希函数特化

模板参数
T指针指向的类型

在文件 hash.hpp38 行定义.

成员函数说明

◆ operator()()

template<typename T>
MSTL_NODISCARD MSTL_CONSTEXPR20 size_t hash< T * >::operator() ( const T * ptr) const
inlinenoexcept

指针哈希运算符

参数
ptr要哈希的指针
返回
指针地址的哈希值

在文件 hash.hpp44 行定义.


该结构体的文档由以下文件生成: