util/ForeignFifoBuffer: import std::swap()
This commit is contained in:
parent
1550113506
commit
57c5603122
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user