Commit 57c56031 authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

util/ForeignFifoBuffer: import std::swap()

parent 15501135
...@@ -83,10 +83,11 @@ public: ...@@ -83,10 +83,11 @@ public:
} }
void Swap(ForeignFifoBuffer<T> &other) noexcept { void Swap(ForeignFifoBuffer<T> &other) noexcept {
std::swap(head, other.head); using std::swap;
std::swap(tail, other.tail); swap(head, other.head);
std::swap(capacity, other.capacity); swap(tail, other.tail);
std::swap(data, other.data); swap(capacity, other.capacity);
swap(data, other.data);
} }
constexpr bool IsNull() const noexcept { constexpr bool IsNull() const noexcept {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment