summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-13 20:25:09 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-13 20:25:09 +0100
commitb11139145aea75465f60d6cc311aa23f27a83814 (patch)
treee16a73f87204cb99afe8c4eab1e5e3599f633142 /lib
parentSearch node network without creating temporary nodes on the heap (diff)
downloadilt-b11139145aea75465f60d6cc311aa23f27a83814.tar.bz2
ilt-b11139145aea75465f60d6cc311aa23f27a83814.tar.xz
ilt-b11139145aea75465f60d6cc311aa23f27a83814.zip
Inheritable of standard typedefs
Diffstat (limited to 'lib')
-rw-r--r--lib/stdTypeDefs.hpp13
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>;
+};