Changeset 4f22d0c3 in mainline for uspace/lib/cpp/include/internal/rbtree.hpp
- Timestamp:
- 2018-07-05T21:41:23Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cf573ec
- Parents:
- 27f1bc0
- git-author:
- Dzejrou <dzejrou@…> (2018-05-13 23:27:05)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/internal/rbtree.hpp
r27f1bc0 r4f22d0c3 125 125 iterator end() 126 126 { 127 return iterator{find_largest_(), true}; 127 /** 128 * In case we have lists of nodes 129 * we need to get the actual end 130 * from the largest node. 131 */ 132 auto res = find_largest_(); 133 if (res) 134 return iterator{res->get_end(), true}; 135 else 136 return iterator{res, true}; 128 137 } 129 138 … … 160 169 const_iterator cend() const 161 170 { 162 return const_iterator{find_largest_(), true}; 171 auto res = find_largest_(); 172 if (res) 173 return const_iterator{res->get_end(), true}; 174 else 175 return const_iterator{res, true}; 163 176 } 164 177
Note:
See TracChangeset
for help on using the changeset viewer.