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.

  1. Otherwise if the insertion took place, inserted is true, position points to the inserted element, and node is empty.

  2. If the insertion failed, inserted is false, node has the previous value of node, and position points to an element with a key equivalent to the key of the node.