File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
library/cpp/histogram/hdr Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,18 @@ namespace NHdr {
44
44
{
45
45
}
46
46
47
+ THistogram::THistogram (THistogram&& other) noexcept
48
+ : Data_(std::move(other.Data_))
49
+ , Allocator_(other.Allocator_)
50
+ {
51
+ }
52
+
53
+ THistogram& THistogram::operator =(THistogram&& rhs) noexcept {
54
+ Data_ = std::move (rhs.Data_ );
55
+ Allocator_ = rhs.Allocator_ ;
56
+ return *this ;
57
+ }
58
+
47
59
THistogram::~THistogram () {
48
60
if (Data_) {
49
61
size_t size = GetMemorySize ();
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ namespace NHdr {
68
68
i32 numberOfSignificantValueDigits,
69
69
IAllocator* allocator = TDefaultAllocator::Instance());
70
70
71
+ THistogram (THistogram&& other) noexcept ;
72
+ THistogram& operator =(THistogram&& rhs) noexcept ;
73
+
71
74
~THistogram ();
72
75
73
76
// Histogram structure querying support -----------------------------------
You can’t perform that action at this time.
0 commit comments