Quantcast
Channel: cpplinq Releases Rss Feed
Viewing all articles
Browse latest Browse all 20

Released: cpplinq-20130203 (фев 03, 2013)

$
0
0
LINQ for C++ is an attempt to bring LINQ-like list manipulation to C++11.

This release includes just the source code.

What's new in this release:
  • singleton() added
  • generate() added
  • to_opt() added
  • pairwize() added
  • zip_with() added

Many thanks d95danb for providing the bulk of this functionality and to mariusbancila for doing an excellent job on the documentation (as well as providing functionality)

This is a sample on how to use cpplinq:
#include "cpplinq.hpp"int computes_a_sum ()
{
    usingnamespace cpplinq;    
    int ints[] = {3,1,4,1,5,9,2,6,5,4};

    // Computes the sum of all even numbers in the sequence abovereturn 
            from_array (ints)
        >>  where ([](int i) {return i%2 ==0;})     // Keep only even numbers>>  sum ()                                  // Sum remaining numbers
        ;
}

See documentation for more details.

Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>