Multiset without Compare?
Posted
by
nimcap
on Stack Overflow
See other posts from Stack Overflow
or by nimcap
Published on 2011-01-03T12:50:29Z
Indexed on
2011/01/03
12:53 UTC
Read the original article
Hit count: 224
I want to use multiset
to count some custom defined keys. The keys are not comparable numerically, comparing two keys does not mean anything, but their equality can be checked.
I see that multiset
template wants a Compare
to order the multiset. The order is not important to me, only the counts are important. If I omit Compare
completely what happens? Does multiset work without any problems for my custom keys?
© Stack Overflow or respective owner