Tag: C++ : Map Tutorial -Part 2: Map and External Sorting Criteria / Comparator
C++ : Map Tutorial -Part 2: Map and External Sorting Criteria / Comparator
In this article we will discuss how to use external sorting criteria for keys in std::map and points that we need to take care with external sorting criteria. Default sorting criteria for keys in std::map is operator “<” i.e. std::less<T>. So, while creating std::map if we don’t specify the external sorting criteria then default criteria …
C++ : Map Tutorial -Part 2: Map and External Sorting Criteria / ComparatorRead More