Changeset 0e5e8bf9 in mainline
- Timestamp:
- 2018-07-05T21:41:23Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8f8f1d1e
- Parents:
- 46cf7bf
- git-author:
- Dzejrou <dzejrou@…> (2018-05-12 01:08:06)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:23)
- Location:
- uspace/lib/cpp/include/impl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/impl/deque.hpp
r46cf7bf r0e5e8bf9 460 460 swap(other); 461 461 other.clear(); 462 463 return *this; 462 464 } 463 465 … … 577 579 if (sz <= size_) 578 580 { 579 for (size_type i = 0; i < size_ - sz; ++i) 581 auto count = size_ - sz; 582 for (size_type i = 0; i < count; ++i) 580 583 pop_back(); 581 584 } … … 583 586 { 584 587 value_type value{}; 585 for (size_type i = 0; i < sz - size_; ++i) 588 auto count = sz - size_; 589 for (size_type i = 0; i < count; ++i) 586 590 push_back(value); 587 591 } … … 592 596 if (sz <= size_) 593 597 { 594 for (size_type i = 0; i < size_ - sz; ++i) 598 auto count = size_ - sz; 599 for (size_type i = 0; i < count; ++i) 595 600 pop_back(); 596 601 } 597 602 else 598 603 { 599 for (size_type i = 0; i < sz - size_; ++i) 604 auto count = sz - size_; 605 for (size_type i = 0; i < count; ++i) 600 606 push_back(value); 601 607 } … … 782 788 return insert( 783 789 position, 784 aux::insert_iterator {0u, value},785 aux::insert_iterator {n}790 aux::insert_iterator<int>{0u, value}, 791 aux::insert_iterator<int>{n} 786 792 ); 787 793 } -
uspace/lib/cpp/include/impl/iterator.hpp
r46cf7bf r0e5e8bf9 132 132 { 133 133 diff_t diff{}; 134 while ( ++first!= last)134 while (first++ != last) 135 135 ++diff; 136 136
Note:
See TracChangeset
for help on using the changeset viewer.