Closed UlrichVonRekkenin closed 1 year ago
The long way works:
auto filtered = users
| ranges::views::enumerate
| ranges::views::filter([](const auto& p){ return p.second.name[0]=='b'; })
Otherwise you can construct a projection by composing p.second
with user.name
.
Hi there,
For instance, a dummy type:
As we can find in the examples it is easy to implement something simple:
or
But how to filter over a Proj by
second_type
(or other) of the enumerated element?