mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +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);
|
|
}
|
|
|
|
}
|