"Function sink" output iterator

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            DO NOT USE - Backlog - Dev Tools
            Reporter:
            Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: