Observers

Miscellaneous functions used in the hash implementation.

  get_allocator() const;
  

Returns the allocator the hash container was constructed with.

  key_comp() const
  

Returns the comparison function the hash container was constructed with.

  value_comp() const
  

Returns the comparison function used in the underlying hash table. For hash_set and hash_multiset, this is the same as key_comp().

  key_hash()
  

Returns the hash function the hash container was constructed with.

  value_hash()
  

Returns the hash function used in the underlying hash table. For hash_set and hash_multiset, this is the same as key_hash().