J
JDT
Hi,
The following find_if works fine to me except that I want the internal
individual comparison performed backward (from m+5, m+4, ..., to m). I
can use reverse() to reverse the array first but that introduces
overhead (a copy of the whole array). It seems that I can use a reverse
iterator but the array m is not a standard STL container such as a
vector. Is it possible? Your help is much appreciated.
float m[6];
float *p = find_if(m, m+6, bind2nd(greater_equal<float>(), 14.5));
Tony
The following find_if works fine to me except that I want the internal
individual comparison performed backward (from m+5, m+4, ..., to m). I
can use reverse() to reverse the array first but that introduces
overhead (a copy of the whole array). It seems that I can use a reverse
iterator but the array m is not a standard STL container such as a
vector. Is it possible? Your help is much appreciated.
float m[6];
float *p = find_if(m, m+6, bind2nd(greater_equal<float>(), 14.5));
Tony