Details
-
Improvement
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
None
-
None
-
Developer Tools
Description
It would be nice to have an Output Iterator that lets you do something like this:
std::copy_if( begin( data ), end( data ), make_MagicIterator( []( auto &&d ) { /* your code here */ } ), []( auto &&x ) { return x > 42; } ); |
In other words – the output iterator pumps its value into whatever function you'd like.