hash_multiset::hasher (STL/CLR)
金鑰雜湊的委派。
Microsoft::VisualC::StlClr::UnaryDelegate<GKey, int>
hasher;
備註
型別描述將機碼的值轉換為整數的委派。
範例
// cliext_hash_multiset_hasher.cpp
// compile with: /clr
#include <cliext/hash_set>
typedef cliext::hash_multiset<wchar_t> Myhash_multiset;
int main()
{
Myhash_multiset c1;
Myhash_multiset::hasher^ myhash = c1.hash_delegate();
System::Console::WriteLine("hash(L'a') = {0}", myhash(L'a'));
System::Console::WriteLine("hash(L'b') = {0}", myhash(L'b'));
return (0);
}
需求
標頭: < cliext/hash_set >
Namespace: cliext