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 > Re: unique_coun...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 9770 of 9909
Post > Topic >>

Re: unique_count() - is it missing?

by "Stephen Howe" <sjhoweATdialDOTpipexDOTcom@[EMAIL PROTECTED] > Jul 22, 2008 at 03:58 PM

>> It is like the difference in SQL between
>>
>> SELECT  COUNT(field) FROM SomeTable
>> SELECT  COUNT(DISTINCT field) FROM SomeTable
>
> Just like in sql, you can count after having removed duplicates.

Yes you can but I was assuming that unique_count() would exist that works
on
a const container (there is no reason why not), assuming that the
container
is appropriately ordered. It should not be necessary to remove duplicates
first.

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 4:30:31 CDT 2008.