diff options
Diffstat (limited to 'library/cpp/yt/memory/ref.cpp')
| -rw-r--r-- | library/cpp/yt/memory/ref.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/library/cpp/yt/memory/ref.cpp b/library/cpp/yt/memory/ref.cpp index 7863d7b41d3..cafa276d013 100644 --- a/library/cpp/yt/memory/ref.cpp +++ b/library/cpp/yt/memory/ref.cpp @@ -429,6 +429,21 @@ TSharedRefArray TSharedRefArray::MakeCopy( return builder.Finish(); } +bool TSharedRefArray::AreBitwiseEqual( + const TSharedRefArray& lhs, + const TSharedRefArray& rhs) +{ + if (lhs.Size() != rhs.Size()) { + return false; + } + for (size_t index = 0; index < lhs.Size(); ++index) { + if (TRef::AreBitwiseEqual(lhs[index], rhs[index])) { + return false; + } + } + return true; +} + //////////////////////////////////////////////////////////////////////////////// TSharedRefArrayBuilder::TSharedRefArrayBuilder( |
