Lazy sequence generators and pipeline operators.
Types
Name |
Description |
Function object that constructs a |
|
Function object that calls a const member function of a class. |
|
These exist because MSVC has problems with expression SFINAE in templates assignment and comparisons don't work properly without being pulled out of the template declaration |
|
SFINAE helper exposing whether |
|
Function object that accesses a data member of a class. |
|
CRTP base for sequence generators that yield |
|
Function object that extracts the nth element of a tuple‐like value. |
|
Function object that compares two values with |
|
Groups the values of a sequence by a computed key. |
|
Function object that compares two values with |
|
Function object that calls a non‐const member function of a class. |
|
EOL terms ("r", "n", or "rn"). |
|
Function object that casts its argument to an rvalue reference. |
|
Class and helper function for negating a boolean Predicate |
|
CRTP base for pipeline operators applied to generators. |
|
Outputs exactly the same bytes as the input stream, in different chunks. A chunk boundary occurs after each delimiter, or, if maxLength is non‐zero, after maxLength bytes, whichever comes first. Your callback can return false to stop consuming the stream at any time. |
|
Function object that converts values to |
|
Function object that converts values to |
|
Polymorphic wrapper |
|
Move‐only polymorphic wrapper for a generator yielding |
Enums
Name |
Description |
Selects the const or non‐const overload of a member accessor. |
Functions
Name |
Description |
all() ‐ For determining whether all values in a sequence satisfy a predicate. |
|
any() ‐ For determining if any value in a sequence satisfies a predicate. |
|
Appends each value of a sequence to an existing collection. |
|
|
|
Asserts at compile time that the sequence yields the given value type. |
|
Generates the lines of an input stream, one std::string at a time. |
|
|
|
Determines whether a sequence contains a given value. |
|
Keeps only the first value for each distinct selected key. |
|
Constructs a |
|
Calls folly::to on each value, converting it to |
|
|
|
|
|
Calls folly::tryTo on each value, mapping to an Expected of |
|
Produces an empty sequence of the given value type. |
|
Extracts a data member from each value. |
|
Keeps only values that satisfy the predicate. |
|
Left‐folds a sequence into a single value from an initial seed. |
|
|
|
Produces a sequence referencing the elements of a const container. |
|
Produces a sequence holding copies of the elements of a container. |
|
|
|
Wraps a source callable as a generator yielding |
|
Extracts the nth element of each tuple‐like value. |
|
Groups all values by their selected key. |
|
Groups consecutive values that share the same selected key. |
|
Wraps a pipeline so exceptions of a given type are passed to a handler. |
|
Interleaves values from the source pipeline with those from |
|
Produces a sequence containing a single value. |
|
Split by EOL ("r", "n", or "rn"). |
|
Applies a function to each value, yielding the results. |
|
mapOp ‐ Given a generator of generators, maps the application of the given operator on to each inner gen. Especially useful in aggregating nested data structures: |
|
Applies a function to each value, yielding the results. |
|
Finds the value with the maximum selected key. |
|
|
|
Finds the value with the minimum selected key. |
|
Creates a predicate that negates the result of |
|
Orders values by their selected key using the given comparer. |
|
Orders values in descending order of their selected key. |
|
parallel ‐ A parallelization operator. |
|
Run |
|
|
|
Reduces a sequence to a single value using a binary reducer. |
|
Split the output from a generator into StringPiece "lines" delimited by the given delimiter. Delimters are NOT included in the output. |
|
|
|
|
|
Creates a StreamSplitter, deducing the callback type. |
|
sub ‐ For sub‐summarization of a sequence. |
|
Yields values while the predicate holds, then stops. |
|
|
|
|
|
Yields values until the predicate holds, then stops. |
|
Unwraps an optional‐like value, using a fallback when it is empty. |
|
Applies a visitor to each value, passing values through unchanged. |
Created with MrDocs