collection resolver producer progress

This commit is contained in:
2026-01-25 22:00:11 +01:00
parent 64f2d6899a
commit 046c1d8ed2
4 changed files with 110 additions and 8 deletions
+8
View File
@@ -12,6 +12,14 @@ public:
using iterator = typename std::vector<value_type>::iterator;
using const_iterator = typename std::vector<value_type>::const_iterator;
collection()
: proxy_(std::make_shared<collection_proxy<Type>>()) {}
explicit collection(std::shared_ptr<collection_proxy<Type>> proxy)
: proxy_(std::move(proxy)) {}
explicit collection(std::vector<Type> items)
: proxy_(std::make_shared<collection_proxy<Type>>(std::move(items))) {}
collection(const collection& other) = default;
void push_back(const value_type& value) {
proxy_->items().push_back(value);
}