|
|
|
@ -32,9 +32,10 @@ public: |
|
|
|
VirtualBuffer(const VirtualBuffer&) = delete; |
|
|
|
VirtualBuffer& operator=(const VirtualBuffer&) = delete; |
|
|
|
|
|
|
|
VirtualBuffer(VirtualBuffer&& other) noexcept |
|
|
|
: alloc_size{std::exchange(other.alloc_size, 0)}, base_ptr{std::exchange(other.base_ptr), |
|
|
|
nullptr} {} |
|
|
|
VirtualBuffer(VirtualBuffer&& other) noexcept { |
|
|
|
alloc_size = std::exchange(other.alloc_size, 0); |
|
|
|
base_ptr = std::exchange(other.base_ptr, nullptr); |
|
|
|
} |
|
|
|
|
|
|
|
VirtualBuffer& operator=(VirtualBuffer&& other) noexcept { |
|
|
|
alloc_size = std::exchange(other.alloc_size, 0); |
|
|
|
|