mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
18 lines
198 B
C++
18 lines
198 B
C++
#include <IO/SwapHelper.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
SwapHelper::SwapHelper(BufferBase & b1_, BufferBase & b2_)
|
|
: b1(b1_), b2(b2_)
|
|
{
|
|
b1.swap(b2);
|
|
}
|
|
|
|
SwapHelper::~SwapHelper()
|
|
{
|
|
b1.swap(b2);
|
|
}
|
|
|
|
}
|