Aracılığıyla paylaş


hash Yapısı

Sınıf şablonu yöntemini döndüren val.hash_code()olarak tanımlar. yöntemi, type_index türündeki değerleri dizin değerlerinin dağılımıyla eşlemek için kullanılan bir karma işlevi tanımlar.

Sözdizimi

template <> struct hash<type_index>
: public unary_function<type_index, size_t>
{ // hashes a typeinfo object
    size_t operator()(type_index val) const;
};

Özel Türler

<System_error>

template <class T> struct hash;
template <> struct hash<error_code>;
template <> struct hash<error_condition>;

Ayrıca bkz.

<typeindex>