Template:cpp/container/node handle insert return
From cppreference.com
{{{2}}}) An object of
insert_return_type
with the members initialized as follows:
- If nh is empty,
inserted
is false,position
is end(), andnode
is empty. - Otherwise if the insertion took place,
inserted
is true,position
points to the inserted element, andnode
is empty. - If the insertion failed,
inserted
is false,node
has the previous value of nh, andposition
points to an element with a key equivalent to nh.key().
{{{3}}}) End iterator if nh was empty, iterator pointing to the inserted element if insertion took place, and iterator pointing to an element with a key equivalent to nh.key() if it failed.