These are convenient in a lot of cases, such as when the thing you want
to append/assign is someReallyLongFunctionName() that you'd rather not
write twice or assign to a variable for the paired begin/end calls.
Details
Details
- Reviewers
rnk mehdi_amini rriddle dblaikie
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
Maybe these would be more effective as generic range-based functions? (is "append(begin, end)" part of the container concept? Not 100% clear to me on a quick check) - would make it usable with a variety of containers in one go instead of adding it to individual containers (& not being able to add it to standard containers)?
This comment was removed by silvas.
Comment Actions
Good point! I added such a function to STLExtras.h here: https://reviews.llvm.org/D90894
(I didn't add one for "assign" since I didn't have an immediate use case. I handled it in assign for this patch for consistency since it seemed there was parallel functionality there for SmallVector in particular)