collection resolver producer progress
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user