From -4959631481211435647
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,f920649f9ddb19aa,start
X-Google-Attributes: gidf78e5,public
From: Dragos-Anton Manolescu <daman@farside.ncsa.uiuc.edu>
Subject: Q: STL replace_if status
Date: 1996/08/06
Message-ID: <juyivaxzlb4.fsf@farside.ncsa.uiuc.edu>#1/1
X-Deja-AN: 172403470
x-original-date: 05 Aug 1996 14:24:15 -0500
x-homepage: http://www.uiuc.edu/ph/www/manolesc
organization: NCSA (National Center for Supercomputing Applications)
x-auth: PGPMoose V1.1 PGP comp.std.c++
return-path: <daemon@meeker.UCAR.EDU>
newsgroups: comp.std.c++


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                             ]



