NVIDIA DeepStream SDK API Reference

9.2 Release
prometheus::detail::LabelHasher Struct Reference

Detailed Description

Label hasher for use in STL containers.

Definition at line 29 of file includes/prometheus/detail/utils.h.

Public Member Functions

std::size_t operator() (const Labels &labels) const
 Compute the hash value of a map of labels. More...
 
std::size_t operator() (const Labels &labels) const
 Compute the hash value of a map of labels. More...
 

Member Function Documentation

◆ operator()() [1/2]

std::size_t prometheus::detail::LabelHasher::operator() ( const Labels &  labels) const

Compute the hash value of a map of labels.

Parameters
labelsThe map that will be computed the hash value.
Returns
The hash value of the given labels.

◆ operator()() [2/2]

std::size_t prometheus::detail::LabelHasher::operator() ( const Labels &  labels) const

Compute the hash value of a map of labels.

Parameters
labelsThe map that will be computed the hash value.
Returns
The hash value of the given labels.

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