diff options
Diffstat (limited to 'libs/kstd')
| -rw-r--r-- | libs/kstd/kstd/bits/shared_ptr.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/kstd/kstd/bits/shared_ptr.hpp b/libs/kstd/kstd/bits/shared_ptr.hpp index c82071a2..99301cbe 100644 --- a/libs/kstd/kstd/bits/shared_ptr.hpp +++ b/libs/kstd/kstd/bits/shared_ptr.hpp @@ -82,6 +82,9 @@ namespace kstd template<typename U> friend struct shared_ptr; + //! The type of object referred to by this instance. + using element_type = std::remove_extent_t<T>; + //! Construct an empty weak pointer. constexpr weak_ptr() noexcept : m_storage(nullptr) |
