summaryrefslogtreecommitdiff
path: root/utility
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-30 18:38:27 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-04 19:29:46 +0000
commit485445b391f8f342ba7a91cb8c628e4ee9b3003a (patch)
treed59b5af671eec0d7b71f9594769094327bd2ca66 /utility
parentSplit into main app and library the rest for testing (diff)
downloadilt-485445b391f8f342ba7a91cb8c628e4ee9b3003a.tar.bz2
ilt-485445b391f8f342ba7a91cb8c628e4ee9b3003a.tar.xz
ilt-485445b391f8f342ba7a91cb8c628e4ee9b3003a.zip
Add some tests over collection
Diffstat (limited to 'utility')
-rw-r--r--utility/collection.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/utility/collection.hpp b/utility/collection.hpp
index a9ddb78..48eae0e 100644
--- a/utility/collection.hpp
+++ b/utility/collection.hpp
@@ -7,7 +7,8 @@
template<typename Object> class Collection {
public:
using Ptr = std::shared_ptr<Object>;
- std::vector<Ptr> objects;
+ using Objects = std::vector<Ptr>;
+ Objects objects;
template<typename T = Object, typename... Params>
auto
@@ -53,6 +54,12 @@ public:
}),
objects.end());
}
+
+ auto
+ end() const
+ {
+ return objects.end();
+ }
};
#endif