aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorchegoryu <chegoryu@yandex-team.com>2022-12-19 11:29:45 +0300
committerchegoryu <chegoryu@yandex-team.com>2022-12-19 11:29:45 +0300
commit802fbca45bbde7ff4929c9fe85e136d794a42e49 (patch)
tree45b8d78cc92cfaeb0cbb55cb36306ba9c23bcb20 /library
parent98b137d7fb1d9945f15062d2a89a9cd525c58d75 (diff)
downloadydb-802fbca45bbde7ff4929c9fe85e136d794a42e49.tar.gz
Add move ctor to TMetricRegistry
Diffstat (limited to 'library')
-rw-r--r--library/cpp/monlib/metrics/metric_registry.cpp2
-rw-r--r--library/cpp/monlib/metrics/metric_registry.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/library/cpp/monlib/metrics/metric_registry.cpp b/library/cpp/monlib/metrics/metric_registry.cpp
index 5c6cabf2fc..c747ae2b74 100644
--- a/library/cpp/monlib/metrics/metric_registry.cpp
+++ b/library/cpp/monlib/metrics/metric_registry.cpp
@@ -32,6 +32,8 @@ namespace NMonitoring {
}
TMetricRegistry::TMetricRegistry() = default;
+ TMetricRegistry::TMetricRegistry(TMetricRegistry&& other) = default;
+
TMetricRegistry::~TMetricRegistry() = default;
TMetricRegistry::TMetricRegistry(const TLabels& commonLabels)
diff --git a/library/cpp/monlib/metrics/metric_registry.h b/library/cpp/monlib/metrics/metric_registry.h
index f61db6ce5f..7b3a7aab70 100644
--- a/library/cpp/monlib/metrics/metric_registry.h
+++ b/library/cpp/monlib/metrics/metric_registry.h
@@ -61,6 +61,8 @@ namespace NMonitoring {
class TMetricRegistry: public IMetricRegistry {
public:
TMetricRegistry();
+ TMetricRegistry(TMetricRegistry&& other);
+
~TMetricRegistry();
explicit TMetricRegistry(const TLabels& commonLabels);