SimpleCxxLib
package#include "hashmap.h"
HashMap
class, which stores
a set of key-value pairs.
Class | |
This class implements an efficient association between keys and values. | |
Function | |
Returns a hash code for the specified key, which is always a nonnegative integer. |
int hashCode(const string & key); int hashCode(int key); int hashCode(char key); int hashCode(long key); int hashCode(double key);
string
type.
Usage:
int hash = hashCode(key);