Boost logo

Boost :

Subject: Re: [boost] [Review:Algorithms] Order of args to clamp
From: Andrew Sutton (asutton.list_at_[hidden])
Date: 2011-09-26 12:27:42

>> template<typename Iter, typename T>
>> void clamp_range(Iter first, Iter last, cont T& high, const T& low)
>> template<typename T>
>> void clamp_range(initialize_list<T> list, const T& high, const T& low);

> I think that, like transform, they would need an output iterator to write into.
> [ note that you can do in-place with that also, by passing "first" as the output iterator ]

Yes, sorry. I was thinking that these would be in-place. Maybe it
would be better if they weren't.

Boost list run by bdawes at, gregod at, cpdaniel at, john at