[Cs3] key order in associative containrs
Mikhail Nesterenko
mikhail at cs.kent.edu
Mon Oct 10 14:05:09 EDT 2016
CS3 students,
this is regarding today's question on key order in associative
containers, such as map and set. By default, they use std::less
functor. It can be replaced with different ordering order.
I came up with an example where map keys are ordered otherwise:
http://vega.cs.kent.edu/~mikhail/classes/cs3/Examples/STLContainersAssociative/mapOrder.cpp
Thanks,
--
Mikhail
More information about the cs3
mailing list