cpplinq new operators

There are some new operators available in cpplinq: singleton, generate, pairwise and zip_with.

This operator create a range with a single element, specified as argument. Using the operator is straight forward.

This operator creates a range using a given predicate.

Generates a new range of pairs by grouping adjacent elements of an input range. On an empty range it yields an empty range.

Generates a new range of pairs by grouping together elements from two different ranges. If the two input ranges have different sizes, the result has the size of the smallest range. If any of the input ranges is empty, the result is an empty range.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.