Topic: Q: STL replace_if status
Author: Dragos-Anton Manolescu <daman@farside.ncsa.uiuc.edu>
Date: 1996/08/06 Raw View
Hello,
I was wondering how can I tell the number of times replace_if()
succeeds? I imagined that replace_if returns an int, but actually it's
void. One way would be to have the predicate record how many times it
returns TRUE, but that's intrusive...
Please e-mail me if you know how to do this.
Tnx,
--
Dragos
---
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]