$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [Review:Algorithms] Order of args to clamp
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2011-09-26 13:44:26
Le 26/09/11 19:08, Andrew Sutton a écrit :
>> Not necessarily. It depends whether N heterogeneous comparisons is
>> going to be faster or slower than one conversion and N homogeneous
>> comparisons. For all you know, each of the N heterogeneous comparisons
>> actually forces the same conversion in the end, and it ends up being
>> much slower.
> Ah, yes. I hadn't considered that. Excellent point.
The point is that the N heterogeneous comparison can avoid the
conversion. If the interface force the conversion, this can not be avoided.
Best,
Vicente