set::end

Returns the past-the-end iterator.

const_iterator end( ) const;

iterator end( );

Return Value

The past-the-end iterator. If the set is empty, then set::end() == set::begin().

Remarks

end is used to test whether an iterator has passed the end of its set.

The value returned by end should not be dereferenced.

For a code example, see set::find.

Requirements

Header: <set>

Namespace: std

See Also

Reference

set Class

Standard Template Library