mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 19:14:30 +00:00
16 lines
228 B
C++
16 lines
228 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
template <typename T> struct release
|
|
{
|
|
void operator()(const T * const ptr) { ptr->release(); }
|
|
};
|
|
|
|
template <typename T> using config_ptr_t = std::unique_ptr<T, release<T>>;
|
|
|
|
}
|