c++ - Combining Streams and Iteration in STXXL -
stxxl supports streaming model of data processing. stxxl data can either processed iterating through (e.g. using stxxl::for_each
), or converting stream mode (e.g. using streamify()
such stream transforms can composed efficient processing. stream results can converted iterators using materialize()
.
i have bunch of stream transforms, want apply input stream. however, not need store result in output "container".
need materialize
-like function drives stream without taking output iterators - stxxl::for_each
.
there such similar function in stxxl?
naturally, can write custom "do-nothing"-output-iterators , pass these materialize()
, wondering if there more elegant solution.
there stxxl::stream::discard
. takes stream , throws away results.
Comments
Post a Comment