mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
7ff447de68
(cherry picked from commit c896f0bf677bcc948d988cf83b2108e9f7cd761d)
10 lines
147 B
C++
10 lines
147 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
template <typename T>
|
|
bool isSharedPtrUnique(const std::shared_ptr<T> & ptr)
|
|
{
|
|
return ptr.use_count() == 1;
|
|
}
|