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 {
|
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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user