timemory 3.3.0
Modular C++ Toolkit for Performance Analysis and Logging. Profiling API and Tools for C, C++, CUDA, Fortran, and Python. The C++ template API is essentially a framework to creating tools: it is designed to provide a unifying interface for recording various performance measurements alongside data logging and interfaces to other tools.
tim::hash::hasher< T > Struct Template Reference

#include "timemory/utility/utility.hpp"

+ Collaboration diagram for tim::hash::hasher< T >:

Public Member Functions

size_t operator() (T &&val) const
 
size_t operator() (const T &val) const
 

Detailed Description

template<typename T>
struct tim::hash::hasher< T >

Definition at line 224 of file utility.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<typename T >
size_t tim::hash::hasher< T >::operator() ( const T &  val) const
inline

Definition at line 227 of file utility.hpp.

227{ return get_hash(val); }
size_t get_hash(T &&obj)
Definition: utility.hpp:206

References tim::hash::get_hash().

◆ operator()() [2/2]

template<typename T >
size_t tim::hash::hasher< T >::operator() ( T &&  val) const
inline

Definition at line 226 of file utility.hpp.

226{ return get_hash(std::forward<T>(val)); }

References tim::hash::get_hash().


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