Displaying 2 results from an estimated 2 matches for "parmrang".
Did you mean:
parmrange
2016 Dec 14
2
Openness to a "zip_iterator" type?
...for over 1 range with an iterator pattern on the other.
IMO, the correct solution to this would be a templated 'zip' type (similar, though not identical to http://www.boost.org/doc/libs/1_62_0/libs/iterator/doc/zip_iterator.html) that would permit:
for (auto&& things : IteratorZip(ParmRange, ArgRange)) {
[CurParm, CurArg] = things; // things is a tuple that contains a reference to each value
}
If I were to implement this IteratorZip type for the LLVM codebase, would this be something the community would be interested in/accept/use? Am I missing an obvious existing implementation s...
2016 Dec 14
0
Openness to a "zip_iterator" type?
...h an iterator pattern on the other.
>
> IMO, the correct solution to this would be a templated 'zip' type (similar, though not identical to http://www.boost.org/doc/libs/1_62_0/libs/iterator/doc/zip_iterator.html) that would permit:
>
> for (auto&& things : IteratorZip(ParmRange, ArgRange)) {
> [CurParm, CurArg] = things; // things is a tuple that contains a reference to each value
> }
>
>
> If I were to implement this IteratorZip type for the LLVM codebase, would this be something the community would be interested in/accept/use? Am I missing an obvious...