S
Steve555
Hi
I'm looking for an algorithm that takes 2 vectors and a function
pointer as arguments?
I want to use the function pointer to calculate a result e.g. the
product, and put the result either in place, or in a third vector.
I've looked through the list of algorithms and there doesn't appear to
be one.
transform() is the closest, but alas works on only a single vector.
Thanks
Steve
(I know I could write the whole thing from scratch, but I'm trying to
get in to the habit of using STL where possible)
I'm looking for an algorithm that takes 2 vectors and a function
pointer as arguments?
I want to use the function pointer to calculate a result e.g. the
product, and put the result either in place, or in a third vector.
I've looked through the list of algorithms and there doesn't appear to
be one.
transform() is the closest, but alas works on only a single vector.
Thanks
Steve
(I know I could write the whole thing from scratch, but I'm trying to
get in to the habit of using STL where possible)