diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-03-31 22:22:25 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-04-02 11:28:08 +0200 |
| commit | 77473afe9d5acb9450443b07b56d3dbc2f0639a6 (patch) | |
| tree | a314bedf8ec1f59aa7bc1f49309fa87bdf22329a /kapi | |
| parent | e7abfb7bf87ac605b2168891973d7e04a84d627e (diff) | |
| download | teachos-77473afe9d5acb9450443b07b56d3dbc2f0639a6.tar.xz teachos-77473afe9d5acb9450443b07b56d3dbc2f0639a6.zip | |
kstd: introduce observer_ptr
Diffstat (limited to 'kapi')
| -rw-r--r-- | kapi/include/kapi/devices/bus.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kapi/include/kapi/devices/bus.hpp b/kapi/include/kapi/devices/bus.hpp index cf8d090..0b25ac1 100644 --- a/kapi/include/kapi/devices/bus.hpp +++ b/kapi/include/kapi/devices/bus.hpp @@ -4,6 +4,7 @@ #include "kapi/devices/device.hpp" #include <kstd/memory> +#include <kstd/observer_ptr> #include <kstd/string> #include <kstd/vector> @@ -33,7 +34,7 @@ namespace kapi::devices //! Get a list of all child devices attached to this bus. //! //! @return A reference to list of child devices of this bus. - [[nodiscard]] virtual auto children() const -> kstd::vector<device *> const & = 0; + [[nodiscard]] virtual auto children() const -> kstd::vector<kstd::observer_ptr<device>> const & = 0; }; } // namespace kapi::devices |
