aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib
diff options
context:
space:
mode:
authortesseract <tesseract@yandex-team.com>2023-09-26 10:26:54 +0300
committertesseract <tesseract@yandex-team.com>2023-09-26 11:02:41 +0300
commite767a4bf3b0f80d5bfb9f3f9a59dc2f8eab258a9 (patch)
tree474374dcf6a48ab5c5b080a918b60b2126883144 /library/cpp/monlib
parent7f5fa7847bc90dfa488ddfa3e4d9c2aa2b93e77a (diff)
downloadydb-e767a4bf3b0f80d5bfb9f3f9a59dc2f8eab258a9.tar.gz
Reduce the number of copies of the vector
Diffstat (limited to 'library/cpp/monlib')
-rw-r--r--library/cpp/monlib/metrics/histogram_collector_explicit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/monlib/metrics/histogram_collector_explicit.cpp b/library/cpp/monlib/metrics/histogram_collector_explicit.cpp
index 11368525cb..a567573a02 100644
--- a/library/cpp/monlib/metrics/histogram_collector_explicit.cpp
+++ b/library/cpp/monlib/metrics/histogram_collector_explicit.cpp
@@ -50,6 +50,6 @@ namespace NMonitoring {
Y_ENSURE(IsSorted(bounds.begin(), bounds.end()),
"bounds for explicit histogram must be sorted");
- return MakeHolder<TExplicitHistogramCollector>(bounds);
+ return MakeHolder<TExplicitHistogramCollector>(std::move(bounds));
}
}