What iterator to return for non-existing map How to signkey?

Posted by Jack on Stack Overflow See other posts from Stack Overflow or by Jack
Published on 2010-04-21T09:32:55Z Indexed on 2010/04/21 9:53 UTC
Read the original article Hit count: 124

Filed under:
|
|

I want to have a function which searches for a key in a collection of maps and returns an iterator to the found key. But what should be returned in case the key cannot be found? I cannot return map::end since the collection of maps can be empty.

Thanks.

© Stack Overflow or respective owner

Related posts about c++

Related posts about stl