Changeset 71cde76 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:22Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
980ad03
Parents:
ffd94b9
git-author:
Dzejrou <dzejrou@…> (2018-05-03 16:54:58)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:22)
Message:

cpp: rbtree::find_parent_for_insertion now tests for equivalence too, so it will always return existing node if there is any that matches key

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/internal/rbtree.hpp

    rffd94b9 r71cde76  
    323323                    if (key_compare_(key, key_extractor_(current->value)))
    324324                        current = current->left;
     325                    else if (key_compare_(key_extractor_(current->value), key))
     326                        current = current->right;
    325327                    else
    326                         current = current->right;
     328                        return current;
    327329                }
    328330
Note: See TracChangeset for help on using the changeset viewer.