Re[4]: STL
От: Шинкевич Андрей Михайлович Россия  
Дата: 27.03.07 08:29
Оценка:
Спасибо, Николай.

К>Здравствуйте, Шинкевич Андрей Михайлович, Вы писали:


ШАМ>>Здравствуйте, Николай. Спасибо Вам за ответ. Но ведь, согласно документации, в первом случае метод вернет итератор == multimap.end().


К>Например, MSDN:

К>

К>

multimap::lowerbound

К>Returns an iterator to the first element in a multimap that with a key that is equal to or greater than a specified key.

К>

Return value

К>An iterator or const_iterator that addresses the location of an element in a multimap that with a key that is equal to or greater than the argument key, or that addresses the location succeeding the last element in the multimap if no match is found for the key.

К>No match — относится не к равенству ключей, а к выполнению условия (выделено жирным).
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.