Awali
Another Weighted Automata library
Public Member Functions
awali::pointed_hash_t< K, H > Class Template Reference

This class takes a hasher for type K and makes a hasher for type K const* that hash the pointed value and not the pointer. More...

#include <linked_map.hxx>

Inheritance diagram for awali::pointed_hash_t< K, H >:

Public Member Functions

std::size_t operator() (K *key) const noexcept
 

Detailed Description

template<typename K, typename H = std::hash<K>>
class awali::pointed_hash_t< K, H >

This class takes a hasher for type K and makes a hasher for type K const* that hash the pointed value and not the pointer.

The hash of a nullptr is 0.

Member Function Documentation

◆ operator()()

template<typename K , typename H = std::hash<K>>
std::size_t awali::pointed_hash_t< K, H >::operator() ( K *  key) const
noexcept

The documentation for this class was generated from the following file: