set::end

const_iterator end() const;

The member function returns a bidirectional iterator that points just beyond the end of the sequence.

See the related sample program.