Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > unique_count() ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 9770 of 9909
Post > Topic >>

unique_count() - is it missing?

by "Stephen Howe" <sjhoweATdialDOTpipexDOTcom@[EMAIL PROTECTED] > Jul 5, 2008 at 08:58 AM

Hi

Am I being obtuse here or is unique_count() missing ?

I would expect that given a pair of input iterators, beginning and end, it
would count and return the number of unique instances of a containers
value
(or apply a predicate). It would take for granted that the sequence is
sorted.

It is like the difference in SQL between

SELECT  COUNT(field) FROM SomeTable
SELECT  COUNT(DISTINCT field) FROM SomeTable

Thanks

Stephen Howe



--
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 4 Posts in Topic:
unique_count() - is it missing?
"Stephen Howe"   2008-07-05 08:58:02 
Re: unique_count() - is it missing?
Alberto Ganesh Barbati &l  2008-07-05 16:53:51 
Re: unique_count() - is it missing?
Mathias Gaunard <loufo  2008-07-05 16:53:59 
Re: unique_count() - is it missing?
"Stephen Howe"   2008-07-22 15:58:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 20 13:03:05 CDT 2008.