From 485445b391f8f342ba7a91cb8c628e4ee9b3003a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 30 Jan 2021 18:38:27 +0000 Subject: Add some tests over collection --- utility/collection.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'utility') 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 class Collection { public: using Ptr = std::shared_ptr; - std::vector objects; + using Objects = std::vector; + Objects objects; template auto @@ -53,6 +54,12 @@ public: }), objects.end()); } + + auto + end() const + { + return objects.end(); + } }; #endif -- cgit v1.2.3