STXXL
1.4.1
|
stxxl::for_each_m is a mutating version of stxxl::for_each, i.e. the restriction that Unary Function functor
can not apply only constant operations through its argument does not exist.
stxxl::for_each_m applies the function object functor
to each element in the range [first, last); functor's
return value, if any, is ignored. Applications are performed in forward order, i.e. from first to last. stxxl::for_each_m returns the function object after it has been applied to each element. To overlap I/O and computation nbuffers
are used (a value at least 2D is recommended). The size of the buffers is derived from the container that is pointed by the iterators.
begin | object of model of ext_random_access_iterator concept |
end | object of model of ext_random_access_iterator concept |
functor | object of model of std::UnaryFunction concept |
nbuffers | number of buffers (blocks) for internal use (should be at least 2*D ) |
functor
after it has been applied to the each element of the given rangeExtIterator
is a model of External Random Access Iterator.UnaryFunction
is a model of STL Unary Function.ExtIterator's
value type is convertible to UnaryFunction's
argument type.[first, last) is a valid range.