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,
insertedistrue,positionpoints to the inserted element, andnodeis empty. -
If the insertion failed,
insertedis false,nodehas the previous value ofnode, andpositionpoints to an element with a key equivalent to the key of the node.