From 4ec1765b410b3347fc718405d2a456b24e688ada Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 22 Sep 2018 14:45:52 +0300 Subject: [PATCH] Add typedefs to tl::object_ptr. GitOrigin-RevId: c696935b7a576b15795ba9b2d8db56aa5d734471 --- td/tl/TlObject.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/td/tl/TlObject.h b/td/tl/TlObject.h index e53181db0..f5c4a28ac 100644 --- a/td/tl/TlObject.h +++ b/td/tl/TlObject.h @@ -96,6 +96,9 @@ namespace tl { template class unique_ptr { public: + using pointer = T *; + using element_type = T; + unique_ptr() noexcept = default; unique_ptr(const unique_ptr &other) = delete; unique_ptr &operator=(const unique_ptr &other) = delete;