|
Boost Users : |
From: David Abrahams (dave_at_[hidden])
Date: 2007-02-17 15:54:18
Erik Ã
ldstedt Sund <eriksund_at_[hidden]> writes:
> Hi,
>
> just a short question: Why does not the zip_iterator header have the
> following (or something along the lines of the following) creator function:
>
>
> template <typename Iter1Type, typename Iter2Type>
> boost::zip_iterator<boost::tuple<Iter1Type, Iter2Type> >
> make_zip_iterator(Iter1Type i, Iter2Type j)
> {
> return boost::make_zip_iterator(boost::make_tuple(i, j));
> }
Well
a. we didn't think of it
and
b. We'd feel obliged to provide a whole series of overloads for up to
N iterators.
>
> That would make creating a zip_iterator much simpler.
Patches welcomed, if they include documentation and tests :)
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net