Changeset adb7dfe1 in mainline
- Timestamp:
- 2018-07-05T21:41:22Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7ca0410f
- Parents:
- 55d6223
- git-author:
- Dzejrou <dzejrou@…> (2018-04-30 21:21:00)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:22)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/internal/rbtree.hpp
r55d6223 radb7dfe1 61 61 using node_type = rbtree_node<value_type>; 62 62 63 // TODO: make find/bounds etc templated with key type64 // for transparent comparators and leave their management for the65 // outer containers66 67 63 rbtree(const key_compare& kcmp = key_compare{}) 68 64 : root_{nullptr}, size_{}, key_compare_{}, … … 382 378 void insert_node(node_type* node, node_type* parent) 383 379 { 380 if (!node) 381 return; 382 384 383 ++size_; 385 384 if (!parent) 385 { 386 node->color = rbcolor::black; 386 387 root_ = node; 388 } 387 389 else 388 390 {
Note:
See TracChangeset
for help on using the changeset viewer.