KiCad PCB EDA Suite
std::hash< NET_NAME_CODE_CACHE_KEY > Struct Reference

#include <connection_graph.h>

Public Member Functions

std::size_t operator() (const NET_NAME_CODE_CACHE_KEY &k) const
 

Detailed Description

Definition at line 255 of file connection_graph.h.

Member Function Documentation

◆ operator()()

std::size_t std::hash< NET_NAME_CODE_CACHE_KEY >::operator() ( const NET_NAME_CODE_CACHE_KEY k) const
inline

Definition at line 257 of file connection_graph.h.

258 {
259 const std::size_t prime = 19937;
260
261 return hash<wxString>()( k.Name ) ^ ( hash<int>()( k.Netcode ) * prime );
262 }

References NET_NAME_CODE_CACHE_KEY::Name, and NET_NAME_CODE_CACHE_KEY::Netcode.


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