STL MAP 反序迭代

ITS_NOTICE_MAP::reverse_iterator it = noticeMap.rbegin();
for ( ; it != noticeMap.rend(); ++it )
{
    Item_Info* nInfo = it->second;
}  

STL map 函数作用
iterator lower_bound( const key_type &key ): 返回一个迭代器,指向键值>= key的第一个元素。
iterator upper_bound( const key_type &key ):返回一个迭代器,指向键值> key的第一个元素。

  

posted @ 2013-08-08 10:08  Tigmer  阅读(476)  评论(0)    收藏  举报