hash_map::hasher (STL/CLR)
해시 키에 대 한 대리자입니다.
Microsoft::VisualC::StlClr::UnaryDelegate<GKey, int>
hasher;
설명
종류의 키 값을 정수로 변환 하는 대리자를 설명 합니다.
예제
// cliext_hash_map_hasher.cpp
// compile with: /clr
#include <cliext/hash_map>
typedef cliext::hash_map<wchar_t, int> Myhash_map;
int main()
{
Myhash_map c1;
Myhash_map::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_map >
네임 스페이스: cliext