Find a dialing method

What exactly does the standard set method find? Iterator to the actual element in the set or to its copy.

+3
source share
2 answers

It returns an iterator pointing to the actual item in the set

From table 69 in standard 23.1.2 / 7

Expression

a.find (k)

statement / note pre / post-condition

returns an iterator pointing to an element with a key equivalent to k, or a.end () if no such element is found.

+2
source

Iterator to the actual item or end(), if not found

+1
source

Source: https://habr.com/ru/post/1778266/


All Articles