algorithm equal_range
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello I have created a map which looks : typedef map MapData; where ltstr is the comparator I use. struct ltstr { bool operator()(const char* s1, const char* s2) const { return strcmp(s1, s2) < 0; } }; I want to use the function equal_range in algorithm class. and to use my comparator, but I don't know how define the comparator for this function. Does anyone know ? Thanks, Clint