Static Public Member Functions | List of all members
fhicl::detail::thread_hash_compare Struct Reference

#include <per_thread_holder.h>

Static Public Member Functions

static size_t hash (std::thread::id id)
 
static bool equal (std::thread::id id1, std::thread::id id2)
 

Detailed Description

Definition at line 9 of file per_thread_holder.h.

Member Function Documentation

static bool fhicl::detail::thread_hash_compare::equal ( std::thread::id  id1,
std::thread::id  id2 
)
inlinestatic

Definition at line 17 of file per_thread_holder.h.

18  {
19  return id1 == id2;
20  }
static size_t fhicl::detail::thread_hash_compare::hash ( std::thread::id  id)
inlinestatic

Definition at line 11 of file per_thread_holder.h.

12  {
13  static std::hash<std::thread::id> const hasher{};
14  return hasher(id);
15  }

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