diff options
author | orlovorlov <orlovorlov@yandex-team.com> | 2023-01-13 03:15:52 +0300 |
---|---|---|
committer | orlovorlov <orlovorlov@yandex-team.com> | 2023-01-13 03:15:52 +0300 |
commit | 1d7ce7e954244f52dc1e3e0a4eb0ad2adc3ea67b (patch) | |
tree | d1fd81aabd9f138f0adf862ae05e0fcb4c5fd39e /library/cpp | |
parent | af0ed98ed997e247080b5ea3e9db13fd6473f85d (diff) | |
download | ydb-1d7ce7e954244f52dc1e3e0a4eb0ad2adc3ea67b.tar.gz |
join-reduce optimization.
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/yt/memory/shared_range.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/library/cpp/yt/memory/shared_range.h b/library/cpp/yt/memory/shared_range.h index 592902fe7a..c67e40fa05 100644 --- a/library/cpp/yt/memory/shared_range.h +++ b/library/cpp/yt/memory/shared_range.h @@ -42,6 +42,12 @@ public: TSharedRange() { } + //! Constructs an empty TSharedRange from a nullptr expression. + TSharedRange(nullptr_t) + : TRange<T>(nullptr, 0UL) + , Holder_(nullptr) + { } + //! Constructs a TSharedRange from TRange. TSharedRange(TRange<T> range, TSharedRangeHolderPtr holder) : TRange<T>(range) |