diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-07-14 20:16:19 +0000 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-07-14 20:16:19 +0000 |
| commit | 576935b6448802138639a324535614e0a966ead1 (patch) | |
| tree | a3bbabccec415668942085cc9b0f2979f6b66adc | |
| parent | 763f38fff9336e40fce27565861e85c95d003a12 (diff) | |
| download | teachos-576935b6448802138639a324535614e0a966ead1.tar.xz teachos-576935b6448802138639a324535614e0a966ead1.zip | |
libs: move unique_ptr to kstd
| -rw-r--r-- | libs/kstd/include/kstd/unique_pointer.hpp (renamed from arch/x86_64/include/arch/stl/unique_pointer.hpp) | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/x86_64/include/arch/stl/unique_pointer.hpp b/libs/kstd/include/kstd/unique_pointer.hpp index 03b4ef3..2861646 100644 --- a/arch/x86_64/include/arch/stl/unique_pointer.hpp +++ b/libs/kstd/include/kstd/unique_pointer.hpp @@ -1,7 +1,9 @@ -#ifndef TEACHOS_ARCH_X86_64_STL_UNIQUE_POINTER_HPP -#define TEACHOS_ARCH_X86_64_STL_UNIQUE_POINTER_HPP +#ifndef KSTD_UNIQUE_POINTER_HPP +#define KSTD_UNIQUE_POINTER_HPP -namespace teachos::arch::stl +#include <utility> + +namespace kstd { /** * @brief Unique_pointer is a smart pointer that owns (is responsible for) and manages another object via a pointer @@ -199,6 +201,6 @@ namespace teachos::arch::stl { return unique_pointer<T>(new T(std::forward<Args>(args)...)); } -} // namespace teachos::arch::stl +} // namespace kstd -#endif // TEACHOS_ARCH_X86_64_STL_UNIQUE_POINTER_HPP
\ No newline at end of file +#endif
\ No newline at end of file |
