Functions

chaincon/stringhash.h File Reference

Hashing keys for std::string. More...

#include <string>
#include "chomp/system/config.h"

Go to the source code of this file.

Functions

int_t hashkey1 (const std::string &s)
 Creates a generic hashing key no.
int_t hashkey2 (const std::string &s)
 Creates a generic hashing key no.

Detailed Description

Hashing keys for std::string.

Definition in file stringhash.h.


Function Documentation

int_t hashkey1 ( const std::string &  s ) [inline]

Creates a generic hashing key no.

1 for the standard string type, to be used in a hashed set.

Definition at line 43 of file stringhash.h.

int_t hashkey2 ( const std::string &  s ) [inline]

Creates a generic hashing key no.

1 for the standard string type, to be used in a hashed set.

Definition at line 67 of file stringhash.h.