AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Functions
alexaClientSDK::avsCommon::utils::functional Namespace Reference

Classes

struct  EnumClassHash
 

Functions

template<typename Type >
void hashCombine (size_t &seed, Type const &value)
 

Function Documentation

◆ hashCombine()

template<typename Type >
void alexaClientSDK::avsCommon::utils::functional::hashCombine ( size_t &  seed,
Type const &  value 
)

Function to combine hash values in to a single hash value. Combination by XOR. A circular rotate left is applied to the seed value before the XOR so that combining hashes generated by the same hash function for the same value (a common use case) won't degenerate to zero.

Parameters
seedAccumulated value from multiple calls.
valueThe next value whose hash is to be combined.

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0