Static Value-Flow Analysis
Public Member Functions | List of all members
std::hash< SVF::NodePair > Struct Reference

#include <SVFType.h>

Public Member Functions

size_t operator() (const SVF::NodePair &p) const
 

Detailed Description

Definition at line 536 of file SVFType.h.

Member Function Documentation

◆ operator()()

size_t std::hash< SVF::NodePair >::operator() ( const SVF::NodePair p) const
inline

Definition at line 538 of file SVFType.h.

539  {
540  // Make sure our assumptions are sound: use u32_t
541  // and u64_t. If NodeID is not actually u32_t or size_t
542  // is not u64_t we should be fine since we get a
543  // consistent result.
544  uint32_t first = (uint32_t)(p.first);
545  uint32_t second = (uint32_t)(p.second);
546  return ((uint64_t)(first) << 32) | (uint64_t)(second);
547  }
cJSON * p
Definition: cJSON.cpp:2559

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