diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-13 20:25:09 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-13 20:25:09 +0100 |
commit | b11139145aea75465f60d6cc311aa23f27a83814 (patch) | |
tree | e16a73f87204cb99afe8c4eab1e5e3599f633142 | |
parent | Search node network without creating temporary nodes on the heap (diff) | |
download | ilt-b11139145aea75465f60d6cc311aa23f27a83814.tar.bz2 ilt-b11139145aea75465f60d6cc311aa23f27a83814.tar.xz ilt-b11139145aea75465f60d6cc311aa23f27a83814.zip |
Inheritable of standard typedefs
-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>; +}; |