<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hi,</div><div><br data-mce-bogus="1"></div><div>Currently, I facing a problem with comparing the value of auxiliary information stored in a map Container.<br></div><div><br data-mce-bogus="1"></div><div>The default comparator i had seen compare the iterator value and set the lower in the begining,</div><div><br data-mce-bogus="1"></div><div>struct EntryItComparator<br>{<br>bool<br>operator()(const iterator& a, const iterator& b) const<br>{<br>return *a < *b;<br>}<br><br>};</div><div><br data-mce-bogus="1"></div><div>with map declaration :</div><div><br data-mce-bogus="1"></div><div>"typedef std::map<iterator, EntryInfo*, EntryItComparator> EntryInfoMapFifo;"<br></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>I want to sort the value based on auxiliary information inside the map,</div><div><br data-mce-bogus="1"></div><div>For example, compare the last time referenced of each data (entryInfo->getLastReferencedTime).</div><div><br data-mce-bogus="1"></div><div>How can I compare the data based on that entry Info?</div><div><br data-mce-bogus="1"></div><div>Thank You</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Best Regards,<br></div><div><br>Adi Paramartha</div><div><br></div></div></body></html>