early-access version 3580

This commit is contained in:
pineappleEA
2023-05-11 18:39:51 +02:00
parent cb385e8241
commit 5f158ebb5e
3 changed files with 4 additions and 10 deletions

View File

@@ -90,13 +90,7 @@ public:
return buffer_capacity;
}
void swap(ScratchBuffer& other) {
std::swap(last_requested_size, other.last_requested_size);
std::swap(buffer_capacity, other.buffer_capacity);
std::swap(buffer, other.buffer);
}
void swap(ScratchBuffer&& other) {
void swap(ScratchBuffer& other) noexcept {
std::swap(last_requested_size, other.last_requested_size);
std::swap(buffer_capacity, other.buffer_capacity);
std::swap(buffer, other.buffer);