ATLAS Offline Software
Loading...
Searching...
No Matches
NavigationTokenHash.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
13
14
15#ifndef NAVIGATION_NAVIGATIONTOKENHASH_H
16#define NAVIGATION_NAVIGATIONTOKENHASH_H
17
18
19#include <functional>
20
21
38inline
39std::size_t navigationHash (const void* p)
40{
41 return std::hash<const void*>() (p);
42}
43
44
45template <typename CHILD>
47{
48 std::size_t operator() (const CHILD* p) const
49 {
50 return navigationHash (p);
51 }
52};
53
54
55
56#endif // not NAVIGATION_NAVIGATIONTOKENHASH_H
std::size_t navigationHash(const void *p)
Allow overriding the default hash function used within NavigationToken.
std::size_t operator()(const CHILD *p) const