diff --git a/src/core/lib/gprpp/memory.h b/src/core/lib/gprpp/memory.h index e26d4d062f1..38318d9b2b2 100644 --- a/src/core/lib/gprpp/memory.h +++ b/src/core/lib/gprpp/memory.h @@ -30,6 +30,22 @@ namespace grpc_core { +// TODO(veblush): Remove this after removing all usages. +template +inline T* New(Args&&... args) { + return new T(std::forward(args)...); +} + +// TODO(veblush): Remove this after removing all usages. +template +inline void Delete(T* p) { + delete p; +} + +// TODO(veblush): Remove this after removing all usages. +template +using UniquePtr = std::unique_ptr; + // TODO(veblush): Replace this with absl::make_unique once abseil is added. template inline std::unique_ptr MakeUnique(Args&&... args) {