Some random patches#375
Conversation
The code only performs sequential iteration and does not require stable iterators or constant-time insert/erase in the middle of the sequence. std::vector provides contiguous storage, better cache locality, and avoids the per-node allocation overhead associated with std::list.
Let's try to be consistent.
On first sight it does look like you are correct and std::vector can be used here as the For example auto nextOperandIt = operandIt;
std::advance(nextOperandIt, 1);looks like it could just be the following now: const auto nextOperandIt = operandIt + 1;
The |
|
Ok. I'll drop the max-width change. |
Add a missing semicolon and simplify padding expression.
8ccc438 to
286e1d0
Compare
|
Dropped the max-width change. |
No description provided.