AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::avsCommon::utils::functional::EnumClassHash Struct Reference

#include <hash.h>

Public Member Functions

template<typename T >
std::size_t operator() (T t) const

Detailed Description

Functor to support std::hash implementations for enum classes. Example:

enum class MyEnum { ONE, TWO, THREE };
std::unordered_map<MyEnum, std::string, EnumClassHash> myMap;
return myMap[TWO];

Member Function Documentation

◆ operator()()

template<typename T >
std::size_t alexaClientSDK::avsCommon::utils::functional::EnumClassHash::operator() ( t) const

The documentation for this struct was generated from the following file:

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