共用方式為


hash 結構 (C++ 標準程式庫)

定義傳回由 Val 唯一決定值的成員函式。 成員函式會定義 hash 函式,適用於將 thread::id 類型的值對應到索引值的分佈。

語法

template <>
struct hash<thread::id> :
    public unary_function<thread::id, size_t>
{
    size_t operator()(thread::id Val) const;

};

需求

標頭: < thread>

命名空間:std

另請參閱

標頭檔參考
<執行緒>
unary_function 結構