Changeset 711f094b in mainline
- Timestamp:
- 2018-07-05T21:41:21Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bdc55009
- Parents:
- f97ccd1
- git-author:
- Dzejrou <dzejrou@…> (2018-04-17 19:04:20)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/impl/iterator.hpp
rf97ccd1 r711f094b 125 125 { 126 126 using cat_t = typename iterator_traits<InputIterator>::iterator_category; 127 using diff_t = typename iterator_traits<InputIterator>::difference_type; 127 128 128 129 if constexpr (is_same_v<cat_t, random_access_iterator_tag>) … … 130 131 else 131 132 { 132 cat_t diff{};133 diff_t diff{}; 133 134 while (++first != last) 134 135 ++diff; 136 137 return diff; 135 138 } 136 139 }
Note:
See TracChangeset
for help on using the changeset viewer.