Public Member Functions | List of all members
std::hash< if_node_t > Struct Template Reference

Public Member Functions

std::size_t operator() (const if_node_t &n) const
 

Detailed Description

template<>
struct std::hash< if_node_t >

Definition at line 32 of file test_indexedgraph.cxx.

Member Function Documentation

std::size_t std::hash< if_node_t >::operator() ( const if_node_t n) const
inline

Definition at line 33 of file test_indexedgraph.cxx.

33  {
34  if (std::holds_alternative<iptr_t>(n.ptr)) {
35  return (size_t)(std::get<iptr_t>(n.ptr).get());
36  }
37  if (std::holds_alternative<fptr_t>(n.ptr)) {
38  return (size_t)(std::get<fptr_t>(n.ptr).get());
39  }
40  return 0;
41  }

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