find method of the set
What exactly find method of the standar开发者_JAVA技巧t set returns? Iterator to the actual element in the set or to its copy.
It returns an iterator pointing to the actual element in the set
From table 69 in standard 23.1.2/7
expression
a.find(k)
assertion/note pre/post-condition
returns an iterator pointing to an element with the key equivalent to k, or a.end() if such an element is not found.
Iterator to the actual element or end()
if not found
精彩评论