summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-13 20:40:30 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-13 20:40:30 +0100
commitc6f3440c88280da8b469b89c0ce866f2fe5d3867 (patch)
tree03372ba9982f65751af839ade06823b27878a694 /lib
parentStandard typedefs for Link (diff)
downloadilt-c6f3440c88280da8b469b89c0ce866f2fe5d3867.tar.bz2
ilt-c6f3440c88280da8b469b89c0ce866f2fe5d3867.tar.xz
ilt-c6f3440c88280da8b469b89c0ce866f2fe5d3867.zip
Add ConstTypeDefs as a const only variant of StdTypeDefs
Diffstat (limited to 'lib')
-rw-r--r--lib/stdTypeDefs.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/stdTypeDefs.hpp b/lib/stdTypeDefs.hpp
index 2055226..8d17c33 100644
--- a/lib/stdTypeDefs.hpp
+++ b/lib/stdTypeDefs.hpp
@@ -11,3 +11,8 @@ template<typename T> struct StdTypeDefs {
using CCollection = std::vector<CPtr>;
using WCollection = std::vector<WPtr>;
};
+
+template<typename T> struct ConstTypeDefs {
+ using Ptr = std::shared_ptr<const T>;
+ using Collection = std::vector<Ptr>;
+};