Interface for applyinng the Filter pattern.
More...
|
template<typename Execution , typename Predicate > |
auto | grppi::keep (Execution &ex, Predicate &&predicate_op) |
| Invoke Filter pattern on a data stream that can be composed in other streaming patterns. This function keeps in the stream only those items that satisfy the predicate. More...
|
|
template<typename Execution , typename Predicate > |
auto | grppi::discard (Execution &ex, Predicate &&predicate_op) |
| Invoke Filter pattern on a data stream that can be composed in other streaming patterns. This function discards from the stream those items that satisfy the predicate. More...
|
|
Interface for applyinng the Filter pattern.
template<typename Execution , typename Predicate >
auto grppi::discard |
( |
Execution & |
ex, |
|
|
Predicate && |
predicate_op |
|
) |
| |
Invoke Filter pattern on a data stream that can be composed in other streaming patterns. This function discards from the stream those items that satisfy the predicate.
- Template Parameters
-
Execution | Execution policy. |
Predicate | Callable type for filter predicate. |
- Parameters
-
ex | Execution policy object. |
predicate_op | Predicate callable object. |
template<typename Execution , typename Predicate >
auto grppi::keep |
( |
Execution & |
ex, |
|
|
Predicate && |
predicate_op |
|
) |
| |
Invoke Filter pattern on a data stream that can be composed in other streaming patterns. This function keeps in the stream only those items that satisfy the predicate.
- Template Parameters
-
Execution | Execution policy. |
Predicate | Callable type for filter predicate. |
- Parameters
-
ex | Execution policy object. |
predicate_op | Predicate callable object. |