mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 00:46:03 +08:00
* Add more constexpr to ctors * Adjust operator!=() in fixed_iterator.h Instead of taking an iterator by reference, take it by value as done in the other operators and overloads. * Initialize move_iterator() current member Prevent indeterminate values * Fix fixed_iterator::operator* return type fixed_iterator::operator* returned value_type by value, so writes like *it = ... modified a temporary rather than the underlying location. This broke the iterator’s intended use (e.g., writing to a fixed register/memory location). Now returning iterator_traits<TIterator>::reference instead (const and non-const overloads). * Fixed move_iterator::operator+= and operator-= return type move_iterator::operator+= / operator-= returned by value, but RandomAccessIterator requirements (and std::move_iterator) expect these to return move_iterator&. Returning by value also added an unnecessary copy and could break generic code expecting reference semantics. |
||
|---|---|---|
| .. | ||
| etl | ||