summaryrefslogtreecommitdiff
path: root/src/common/memory.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-14 10:40:26 +0100
committerHampusM <hampus@hampusmat.com>2022-03-14 10:40:26 +0100
commit5aa818e65eaa3cc288e097ed3b1a134015215500 (patch)
tree23bb39e48c94634b12de82c74708dea8e720dc38 /src/common/memory.hpp
parenta119e6ca70ffab14f0a70908fa3eeb83b41bb5ab (diff)
refactor: move UniquePtr to memory dir in common
Diffstat (limited to 'src/common/memory.hpp')
-rw-r--r--src/common/memory.hpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/common/memory.hpp b/src/common/memory.hpp
index de72d80..888ede3 100644
--- a/src/common/memory.hpp
+++ b/src/common/memory.hpp
@@ -8,37 +8,6 @@ namespace common
template <typename memType>
memType *malloc_s(unsigned int size);
-template <class Target>
-class UniquePtr
-{
-public:
- explicit UniquePtr() = default;
- explicit UniquePtr(Target *target);
-
- // Move constructor
- UniquePtr(UniquePtr &&unique_ptr) noexcept;
-
- // Move assignment operator
- UniquePtr &operator=(UniquePtr &&unique_ptr) noexcept;
-
- // Disable the copy constructor
- UniquePtr(const UniquePtr &unique_ptr) = delete;
-
- // Disable the copy assignment operator
- UniquePtr &operator=(const UniquePtr &unique_ptr) = delete;
-
- ~UniquePtr();
-
- Target operator*() const;
- Target *operator->() const;
-
-private:
- Target *_target = nullptr;
-};
-
-template <typename Target, typename... Args>
-UniquePtr<Target> make_unique(Args... args);
-
} // namespace common
#include "memory.tpp"