ArmNN
 25.11
Loading...
Searching...
No Matches
hash< armnn::BackendId > Struct Reference

make BackendId compatible with std hashtables by reusing the hash function for strings. More...

#include <BackendId.hpp>

Public Member Functions

std::size_t operator() (const armnn::BackendId &id) const noexcept

Detailed Description

make BackendId compatible with std hashtables by reusing the hash function for strings.

Note this must come before the first use of unordered_set<BackendId>.

Definition at line 159 of file BackendId.hpp.

Member Function Documentation

◆ operator()()

std::size_t operator() ( const armnn::BackendId & id) const
inlinenoexcept

Definition at line 161 of file BackendId.hpp.

162 {
163 std::hash<std::string> hasher;
164 return hasher(id.Get());
165 }

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