aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-07-16 11:10:23 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-07-16 11:10:23 +0200
commit4c08db1e4a66109939181fd5224ecb324694162d (patch)
treec525845922d13c3ca0c2692605c7d52396124b88 /libs/kstd
parentee347c5e565a5cd6af1f2a0f5afdc805042a5ab3 (diff)
downloadkernel-4c08db1e4a66109939181fd5224ecb324694162d.tar.xz
kernel-4c08db1e4a66109939181fd5224ecb324694162d.zip
kstd: add missing type alias
Diffstat (limited to 'libs/kstd')
-rw-r--r--libs/kstd/kstd/bits/shared_ptr.hpp3
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)