diff options
Diffstat (limited to 'utility')
-rw-r--r-- | utility/collection.hpp | 9 |
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 |