I would like to have a container
StdStyleSet<A>
of
class A : IComparable<A> { ... }
which satisfies the properties of std::set. This would especially be:
SortedSet<T>
: see documents - although technically, it's in the .NET Framework.
For earlier versions, you could use a HashSet and sort using LINQ, not ideal if you're primarily consuming the set in an ordered fashion. Alternatively you could use a SortedDictionary<TKey,TValue>
with the value as Object
and store your elements in the keys with nulls for the values.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With