aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/IO/SwapHelper.cpp
blob: 4a1cc8acf4c9301f5a76127c9685ce17da42ca37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <IO/SwapHelper.h>

namespace DB
{

SwapHelper::SwapHelper(BufferBase & b1_, BufferBase & b2_)
    : b1(b1_), b2(b2_)
{
    b1.swap(b2);
}

SwapHelper::~SwapHelper()
{
    b1.swap(b2);
}

}