Changeset e5cf551 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:
- eb3c271
- Parents:
- f62f1ee
- git-author:
- Dzejrou <dzejrou@…> (2018-04-20 15:34:03)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:21)
- Location:
- uspace/lib/cpp/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/impl/deque.hpp
rf62f1ee re5cf551 782 782 return insert( 783 783 position, 784 aux::insert_iterator{ value},784 aux::insert_iterator{0u, value}, 785 785 aux::insert_iterator{n} 786 786 ); -
uspace/lib/cpp/include/internal/insert_iterator.hpp
rf62f1ee re5cf551 60 60 { 61 61 public: 62 using difference_type = unsigned ;62 using difference_type = unsigned long long; 63 63 using value_type = T; 64 using iterator_category = forward_iterator_tag;64 using iterator_category = input_iterator_tag; 65 65 using reference = value_type&; 66 66 using pointer = value_type*; 67 67 68 explicit insert_iterator(const value_type& val) 69 : value_{val}, count_{} 70 { /* DUMMY BODY */ } 71 72 explicit insert_iterator(difference_type count) 73 : value_{}, count_{count} 74 { /* DUMMY BODY */ } 75 76 explicit insert_iterator(const value_type& val, difference_type count) 68 explicit insert_iterator(difference_type count, const value_type& val = value_type{}) 77 69 : value_{val}, count_{count} 78 70 { /* DUMMY BODY */ } … … 105 97 ++count_; 106 98 107 return insert_iterator{ value_, count_ - 1};99 return insert_iterator{count_ - 1, value_}; 108 100 } 109 101
Note:
See TracChangeset
for help on using the changeset viewer.