diff options
author | kbalakirev <[email protected]> | 2022-02-10 16:48:58 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:58 +0300 |
commit | 498a47e48d41e5ec64ee3aa622a76a80274f35bd (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/monlib/metrics/labels.h | |
parent | 1906a186042870fd03a12180acd1a6fcee045e42 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/monlib/metrics/labels.h')
-rw-r--r-- | library/cpp/monlib/metrics/labels.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/monlib/metrics/labels.h b/library/cpp/monlib/metrics/labels.h index 80a78efa6ce..63dc997c280 100644 --- a/library/cpp/monlib/metrics/labels.h +++ b/library/cpp/monlib/metrics/labels.h @@ -292,12 +292,12 @@ namespace NMonitoring { return tmp; } - void SortByName() { + void SortByName() { std::sort(Labels_.begin(), Labels_.end(), [](const auto& lhs, const auto& rhs) { - return lhs.Name() < rhs.Name(); - }); - } - + return lhs.Name() < rhs.Name(); + }); + } + inline size_t Hash() const noexcept override { return TSimpleRangeHash()(Labels_); } |