diff options
author | babenko <babenko@yandex-team.com> | 2023-05-02 13:57:11 +0300 |
---|---|---|
committer | babenko <babenko@yandex-team.com> | 2023-05-02 13:57:11 +0300 |
commit | 47010744a30f2dc782dc790712e14bcd1b286136 (patch) | |
tree | 7cfcdae6bc440ece0592bc2a85dbb1d96791814c /library/cpp/yt/memory/new.h | |
parent | 7669d64dfe695cd82cc8cc9384855f5380ba9adb (diff) | |
download | ydb-47010744a30f2dc782dc790712e14bcd1b286136.tar.gz |
YT-19007: Implement NewWithOffloadedDtor
Diffstat (limited to 'library/cpp/yt/memory/new.h')
-rw-r--r-- | library/cpp/yt/memory/new.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/library/cpp/yt/memory/new.h b/library/cpp/yt/memory/new.h index ea96fd60e0..7108b0e7a0 100644 --- a/library/cpp/yt/memory/new.h +++ b/library/cpp/yt/memory/new.h @@ -1,7 +1,6 @@ #pragma once #include "intrusive_ptr.h" -#include "ref_tracked.h" #include <library/cpp/yt/misc/source_location.h> @@ -93,9 +92,9 @@ TIntrusivePtr<T> NewWithExtraSpace(size_t extraSpaceSize, As&&... args); template <class T, class... As, class = typename THasAllocator<T>::TTrue> TIntrusivePtr<T> NewWithExtraSpace(typename T::TAllocator* allocator, size_t extraSpaceSize, As&&... args); -//! Allocates a new instance of |T| with user deleter. +//! Allocates a new instance of |T| with a custom #deleter. template <class T, class TDeleter, class... As> -TIntrusivePtr<T> NewWithDelete(const TDeleter& deleter, As&&... args); +TIntrusivePtr<T> NewWithDeleter(TDeleter deleter, As&&... args); //! Allocates a new instance of |T|. //! The allocation is additionally marked with #location. |