c++ container allowing you to sort items by when they where last accessed?
<p>Does such a thing exist? or could anyone please recommend how I could implement such a container?</p>

<p>basically I have a std::map which uses a 64bit integer as its key and a custom datatype as the containing item.</p>

<p>I need to be able to periodically remove items that havent been accessed in a while in the most optimal way. does anyone have any suggestions for this?</p>

<p>cheers</p>
