Changeset f22b170b for src/Common/Iterate.hpp
- Timestamp:
- Nov 16, 2023, 9:22:34 AM (7 months ago)
- Branches:
- master
- Children:
- aad677d
- Parents:
- 89a8bab (diff), b8b5535 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/Iterate.hpp
r89a8bab rf22b170b 58 58 template<typename val_t> 59 59 struct value_t { 60 size_t idx; 60 61 val_t & val; 61 size_t idx;62 62 }; 63 63 … … 69 69 iterator_t( iter_t _it, size_t _idx ) : it(_it), idx(_idx) {} 70 70 71 value_t<val_t> operator*() const { return value_t<val_t>{ *it, idx}; }71 value_t<val_t> operator*() const { return value_t<val_t>{ idx, *it }; } 72 72 73 73 bool operator==(const iterator_t & o) const { return o.it == it; }
Note: See TracChangeset
for help on using the changeset viewer.