I don’t know how to pass a custom sort behavior to a std::map in the following way:
Constructor(const std::function<bool(const Obj&, const Obj&)>& ac_xNewComparator)
: mNewMap(xNewComparator(/*...???....*/)) {}
How could I pass the comparator to the map?
1 Answer