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! ]