fnv_1a_hasher Function

public pure function fnv_1a_hasher(key)

Hashes a key with the FNV_1a algorithm (Specifications)

Arguments: key - the key to be hashed

Arguments

Type IntentOptional Attributes Name
type(key_type), intent(in) :: key

Return Value integer(kind=int_hash)


Source Code

    pure function fnv_1a_hasher( key )
!! Version: Experimental
!!
!! Hashes a key with the FNV_1a algorithm
!! ([Specifications](../page/specs/stdlib_hashmaps.html#fnv_1a_hasher-calculates-a-hash-code-from-a-key))
!!
!! Arguments:
!!     key  - the key to be hashed
        type(key_type), intent(in)    :: key
        integer(int_hash)             :: fnv_1a_hasher

        fnv_1a_hasher = fnv_1a_hash( key % value )

    end function fnv_1a_hasher