FuncDoodle
Loading...
Searching...
No Matches
Ptr.h
Go to the documentation of this file.
1
16
17#pragma once
18
19#include <memory>
20
21// don't think any Doxygen comments are needed here - pretty self-explanatory
22// header file
23
24// in-case i'd ever want to make my own smart ptr thing or smth
25// with like ref count
26// for debugging
28template <typename T> using UniquePtr = std::unique_ptr<T>;
29
31template <typename T> using SharedPtr = std::shared_ptr<T>;
32
34template <typename T> using WeakPtr = std::weak_ptr<T>;
std::weak_ptr< T > WeakPtr
Alias for a non-owning observer of a SharedPtr.
Definition Ptr.h:34
std::unique_ptr< T > UniquePtr
Alias for an exclusively owned smart pointer.
Definition Ptr.h:28
std::shared_ptr< T > SharedPtr
Alias for a reference-counted shared smart pointer.
Definition Ptr.h:31