Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28946

"Function sink" output iterator

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 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.

      Attachments

        Activity

          People

            backlog-server-devtools DO NOT USE - Backlog - Dev Tools
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: