diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/stdTypeDefs.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/stdTypeDefs.hpp b/lib/stdTypeDefs.hpp new file mode 100644 index 0000000..2055226 --- /dev/null +++ b/lib/stdTypeDefs.hpp @@ -0,0 +1,13 @@ +#pragma once + +#include <memory> +#include <vector> + +template<typename T> struct StdTypeDefs { + using Ptr = std::shared_ptr<T>; + using CPtr = std::shared_ptr<const T>; + using WPtr = std::weak_ptr<const T>; + using Collection = std::vector<Ptr>; + using CCollection = std::vector<CPtr>; + using WCollection = std::vector<WPtr>; +}; |