Insert the specified value into this set if not already present.
Synopsis
Declared in <bdlc_flathashset.h>
bsl::pair<const_iterator, bool>
insert(KEY const& value);
Description
Insert the specified value into this set if the value does not already exist in this set; otherwise, this method has no effect. Return a pair whose first member is a const_iterator referring to the (possibly newly inserted) element in this set whose value is equivalent to that of the element to be inserted, and whose second member is true if a new element was inserted, and false if an equivalent value was already present.
Return Value
pair of iterator to the element and whether insertion occurred
Parameters
Name |
Description |
value |
element to insert |
Created with MrDocs