开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜