dereferenced_hash.h

Back to Hash objects

pastel/sys/hashing/

// Description: Hashing of dereferenced value
// Documentation: hashes.txt

#ifndef PASTELSYS_DEREFERENCED_HASH_H
#define PASTELSYS_DEREFERENCED_HASH_H

#include "pastel/sys/hashing.h"

namespace Pastel
{

    //! Computes hash from dereferenced value.
    class Dereferenced_Hash
    {
    public:
        template <typename Iterator>
        hash_integer operator()(const Iterator& iter) const
        {
            return computeHash(*iter);
        }
    };

}

#endif