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

#include <board.h>

Public Member Functions

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

Detailed Description

Definition at line 127 of file board.h.

Member Function Documentation

◆ operator()()

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

Definition at line 129 of file board.h.

130 {
131 std::size_t seed = 0xa82de1c0;
132 hash_combine( seed, k.A, k.B, k.Layer );
133 return seed;
134 }
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 * B
Definition: board.h:93
BOARD_ITEM * A
Definition: board.h:92
PCB_LAYER_ID Layer
Definition: board.h:94

References PTR_PTR_LAYER_CACHE_KEY::A, PTR_PTR_LAYER_CACHE_KEY::B, hash_combine(), and PTR_PTR_LAYER_CACHE_KEY::Layer.


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