]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/third_party/prometheus-cpp/core/include/prometheus/detail/utils.h
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / third_party / prometheus-cpp / core / include / prometheus / detail / utils.h
1 #pragma once
2
3 #include <cstddef>
4
5 #include "prometheus/detail/core_export.h"
6 #include "prometheus/labels.h"
7
8 namespace prometheus {
9 namespace detail {
10
11 /// \brief Label hasher for use in STL containers.
12 struct PROMETHEUS_CPP_CORE_EXPORT LabelHasher {
13 /// \brief Compute the hash value of a map of labels.
14 ///
15 /// \param labels The map that will be computed the hash value.
16 ///
17 /// \returns The hash value of the given labels.
18 std::size_t operator()(const Labels& labels) const;
19 };
20
21 } // namespace detail
22 } // namespace prometheus