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

#include <board.h>

Public Member Functions

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

Detailed Description

Definition at line 116 of file board.h.

Member Function Documentation

◆ operator()()

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

Definition at line 118 of file board.h.

119 {
120 std::size_t seed = 0xa82de1c0;
121 hash_combine( seed, k.A, k.Layer );
122 return seed;
123 }
static void hash_combine(std::size_t &seed)
This is a dummy function to take the final case of hash_combine below.
Definition: hash.h:34
BOARD_ITEM * A
Definition: board.h:81
PCB_LAYER_ID Layer
Definition: board.h:82

References PTR_LAYER_CACHE_KEY::A, hash_combine(), and PTR_LAYER_CACHE_KEY::Layer.


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