lib/misc/crc_hash.h
author "Tomas Zeman <tzeman@volny.cz>"
Sun, 20 Jan 2008 00:22:09 +0100
changeset 2 b3afb9f1e801
parent 0 6f7a81934006
permissions -rw-r--r--
Imported vmailmgr-0.97

#ifndef CRC_HASH__H__
#define CRC_HASH__H__

#include "misc/crc32.h"

class crc_hash
{
public:
  unsigned operator()(const mystring& key) const
    {
      crc32_c crc;
      crc.update(key.c_str(), key.length());
      return crc;
    }
};

#endif