Boost logo

Boost Users :

Subject: Re: [Boost-users] [fusion] how to get the tuple of min values of 2 tuples whatever their length?
From: Bjorn Reese (breese_at_[hidden])
Date: 2013-07-17 12:41:54


On 07/17/2013 01:17 PM, Frédéric Bron wrote:

> I have tried with boost::fusion::accumulate but I need to now in the
> functor the index of the value that is currently accessed to compare
> to the right one in k1.

Others have already pointed you to fusion::transform. There is a
complete example of this in the documentation, albeit it does pairwise
subtraction instead of min:

http://www.boost.org/fusion/doc/html/fusion/functional/adapters/fused_function_object.html


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