template<class I, size_t siz = sizeof(I)>
template<typename IT>
class lib::ScopedCollection< I, siz >::PullFrom< IT >
fills the ScopedCollection with default constructed TY-instances
- usage
- This variant allows to "pull" elements from an iterator. Actually, the collection will try to create each element right away, by invoking the copy ctor and passing the value yielded by the iterator.
- Note
- anything in accordance to the Lumiera Forward Iterator pattern is OK. This rules out just passing a plain STL iterator (because these can't tell for themselves when they're exhausted). Use an suitable iter-adapter instead, e.g. by invoking lib::iter_stl::eachElm(stl_container)
Definition at line 460 of file scoped-collection.hpp.