diff options
Diffstat (limited to 'src/utils/memory.hpp')
-rw-r--r-- | src/utils/memory.hpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/utils/memory.hpp b/src/utils/memory.hpp deleted file mode 100644 index e870b0b..0000000 --- a/src/utils/memory.hpp +++ /dev/null @@ -1,33 +0,0 @@ -#pragma once - -#include <stddef.h> - -template <typename memType> -memType *malloc_s(unsigned int size); - -template <class Target> -class UniquePtr -{ -public: - explicit UniquePtr(); - explicit UniquePtr(Target *target); - UniquePtr(const UniquePtr &unique_ptr); - UniquePtr(UniquePtr &&unique_ptr) noexcept; - - UniquePtr &operator=(const UniquePtr &unique_ptr); - - UniquePtr &operator=(UniquePtr &&unique_ptr) noexcept; - - ~UniquePtr(); - - Target operator*() const; - Target *operator->() const; - -private: - Target *_target = nullptr; -}; - -template <typename Target, typename... Args> -UniquePtr<Target> make_unique(Args... args); - -#include "memory.tpp" |