ArmNN
 21.11
hash< armnn::BackendId > Struct Template 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

template<>
struct std::hash< armnn::BackendId >

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 156 of file BackendId.hpp.

Member Function Documentation

◆ operator()()

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

Definition at line 158 of file BackendId.hpp.

159  {
160  std::hash<std::string> hasher;
161  return hasher(id.Get());
162  }

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