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 {
4444 {
4545 }
4646
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+
4759 THistogram::~THistogram () {
4860 if (Data_) {
4961 size_t size = GetMemorySize ();
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ namespace NHdr {
6868 i32 numberOfSignificantValueDigits,
6969 IAllocator* allocator = TDefaultAllocator::Instance());
7070
71+ THistogram (THistogram&& other) noexcept ;
72+ THistogram& operator =(THistogram&& rhs) noexcept ;
73+
7174 ~THistogram ();
7275
7376 // Histogram structure querying support -----------------------------------
You can’t perform that action at this time.
0 commit comments