Static Value-Flow Analysis
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
SVF::Hash< std::pair< S, T > > Struct Template Reference

#include <GeneralType.h>

Public Member Functions

size_t operator() (const std::pair< S, T > &t) const
 

Static Public Member Functions

static size_t szudzik (size_t a, size_t b)
 

Detailed Description

template<class S, class T>
struct SVF::Hash< std::pair< S, T > >

Definition at line 68 of file GeneralType.h.

Member Function Documentation

◆ operator()()

template<class S , class T >
size_t SVF::Hash< std::pair< S, T > >::operator() ( const std::pair< S, T > &  t) const
inline

Definition at line 76 of file GeneralType.h.

77 {
78 Hash<decltype(t.first)> first;
79 Hash<decltype(t.second)> second;
80 return szudzik(first(t.first), second(t.second));
81 }
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:74
static size_t szudzik(size_t a, size_t b)
Definition GeneralType.h:71

◆ szudzik()

template<class S , class T >
static size_t SVF::Hash< std::pair< S, T > >::szudzik ( size_t  a,
size_t  b 
)
inlinestatic

Definition at line 71 of file GeneralType.h.

72 {
73 return a > b ? b * b + a : a * a + a + b;
74 }
cJSON * a
Definition cJSON.cpp:2560
const cJSON *const b
Definition cJSON.h:255

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