aboutsummaryrefslogtreecommitdiff
path: root/source/boot/include
diff options
context:
space:
mode:
Diffstat (limited to 'source/boot/include')
-rw-r--r--source/boot/include/boot/asm_pointer.hpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/source/boot/include/boot/asm_pointer.hpp b/source/boot/include/boot/asm_pointer.hpp
deleted file mode 100644
index ec7141e..0000000
--- a/source/boot/include/boot/asm_pointer.hpp
+++ /dev/null
@@ -1,43 +0,0 @@
-#ifndef TEACHOS_BOOT_ASM_POINTER_HPP
-#define TEACHOS_BOOT_ASM_POINTER_HPP
-
-namespace teachos::boot
-{
-
- template<typename Type>
- struct asm_pointer
- {
- constexpr asm_pointer(Type & pointer)
- : m_pointer{&pointer}
- {
- }
-
- auto constexpr operator->() -> Type * { return m_pointer; }
- auto constexpr operator->() const -> Type const * { return m_pointer; }
- auto constexpr operator*() -> Type & { return *m_pointer; }
- auto constexpr operator*() const -> Type const & { return *m_pointer; }
-
- private:
- Type * m_pointer;
- };
-
- template<typename Type>
- struct asm_pointer<Type const>
- {
- constexpr asm_pointer(Type const & pointer)
- : m_pointer{&pointer}
- {
- }
-
- auto constexpr operator->() -> Type const * { return m_pointer; }
- auto constexpr operator->() const -> Type const * { return m_pointer; }
- auto constexpr operator*() -> Type const & { return *m_pointer; }
- auto constexpr operator*() const -> Type const & { return *m_pointer; }
-
- private:
- Type const * m_pointer;
- };
-
-} // namespace teachos::boot
-
-#endif \ No newline at end of file