add Buffer move assignment operator

This commit is contained in:
MihailRis 2024-10-24 17:40:04 +03:00
parent 229456ced5
commit b3d942b76c

View File

@ -37,6 +37,8 @@ namespace util {
Buffer(std::nullptr_t) noexcept : ptr(nullptr), length(0) {}
Buffer& operator=(Buffer&&) = default;
inline bool operator==(std::nullptr_t) const noexcept {
return ptr == nullptr;
}