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:
}
void Swap(ForeignFifoBuffer<T> &other) noexcept {
std::swap(head, other.head);
std::swap(tail, other.tail);
std::swap(capacity, other.capacity);
std::swap(data, other.data);
using std::swap;
swap(head, other.head);
swap(tail, other.tail);
swap(capacity, other.capacity);
swap(data, other.data);
}
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