/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
library/cpp/yt/memory/leaky_ref_counted_singleton.h
22 строки
631 B
robot-piglet
Intermediate changes
08 авг 2023, 20:03
08 авг 2023, 20:03
145f67a
Код
Авторство
О чём код?
#pragma once #include "intrusive_ptr.h" namespace NYT { //////////////////////////////////////////////////////////////////////////////// #define DECLARE_LEAKY_REF_COUNTED_SINGLETON_FRIEND() \ template <class T> \ friend struct ::NYT::TRefCountedWrapper; template <class T, class... TArgs> TIntrusivePtr<T> LeakyRefCountedSingleton(TArgs&&... args); //////////////////////////////////////////////////////////////////////////////// } // namespace NYT #define LEAKY_REF_COUNTED_SINGLETON_INL_H_ #include "leaky_ref_counted_singleton-inl.h" #undef LEAKY_REF_COUNTED_SINGLETON_INL_H_