Use std::span#123
Conversation
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
|
Tick the box to add this pull request to the merge queue (same as
|
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
|
|
||
| bool MenuHandler::pushMenuEntries( | ||
| std::vector<EntryHandle> & handles_in, | ||
| std::span<const EntryHandle> handles_in, |
There was a problem hiding this comment.
Normally I would flag this as having dropped the pass-by-reference, but I looked it up and apparently pass-by-value is acceptable with spans. TIL.
asymingt
left a comment
There was a problem hiding this comment.
LGTM. Today I learned about std::span! The neat thing is that it supports ranges too, which I think has the potential to be super useful, because it avoids you needing to maintain iterators for ranges.
|
Pulls: #123 |
Claude Opus 4.7