Luna::UnorderedSet::insert
insert_return_type insert(node_type &&node)
Inserts one node to the set.
Parameters
-
in node
The node to insert. The node must be extracted from one unordered set of the same type using extract.
Return value
Returns one structure identifying the insertion result:1. If node
is empty, inserted
is false, position
is end()
, and node
is empty.
-
Otherwise if the insertion took place,
inserted
istrue
,position
points to the inserted element, andnode
is empty. -
If the insertion failed,
inserted
is false,node
has the previous value ofnode
, andposition
points to an element with a key equivalent to the key of the node.