size_type operator()

in src/xalanc/Include/XalanMap.hpp [52:64]


    size_type operator()(const Key& key) const
    {
        const char *byteArray = reinterpret_cast<const char*>(&key);

        size_type result = 0;

        for (size_type i = 0; i < sizeof(Key); ++i)
        {
            result = (result << 1) ^ byteArray[i];
        }

        return result;
    }