diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-13 20:40:30 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-13 20:40:30 +0100 |
commit | c6f3440c88280da8b469b89c0ce866f2fe5d3867 (patch) | |
tree | 03372ba9982f65751af839ade06823b27878a694 | |
parent | Standard typedefs for Link (diff) | |
download | ilt-c6f3440c88280da8b469b89c0ce866f2fe5d3867.tar.bz2 ilt-c6f3440c88280da8b469b89c0ce866f2fe5d3867.tar.xz ilt-c6f3440c88280da8b469b89c0ce866f2fe5d3867.zip |
Add ConstTypeDefs as a const only variant of StdTypeDefs
-rw-r--r-- | lib/stdTypeDefs.hpp | 5 |
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>; +}; |