
26 Sep
2011
26 Sep
'11
4:27 p.m.
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.