The hash function of the pairs of a map, from that of its keys.
- Template Parameters
-
| Key | The type of the keys. |
| Data | The type of the values. |
- Parameters
-
| [in] | fct | The hash function of the keys. |
- Returns
- A function object that gives, for a pair, the hash that
fct gives for its key.
- Note
- The object holds only the pointer
fct, so that the std::function of a hash table keeps it in its own buffer: its copies do not allocate, as those of a std::bind of map_hash_fct() do.
Definition at line 1157 of file hash-fct.H.