Sequential implementation fo the Filter pattern.
More...
|
template<typename Generator , typename Predicate , typename Consumer > |
void | grppi::keep (sequential_execution, Generator generate_op, Predicate predicate_op, Consumer consume_op) |
| Invoke Filter pattern on a data sequence with sequential execution policy. This function keeps in the stream only those items that satisfy the predicate. More...
|
|
template<typename Generator , typename Predicate , typename Consumer > |
void | grppi::discard (sequential_execution &ex, Generator generate_op, Predicate predicate_op, Consumer consume_op) |
| Invoke Filter pattern on a data sequence with sequential execution policy. This function discards from the stream those items that satisfy the predicate. More...
|
|
Sequential implementation fo the Filter pattern.
template<typename Generator , typename Predicate , typename Consumer >
void grppi::discard |
( |
sequential_execution & |
ex, |
|
|
Generator |
generate_op, |
|
|
Predicate |
predicate_op, |
|
|
Consumer |
consume_op |
|
) |
| |
Invoke Filter pattern on a data sequence with sequential execution policy. This function discards from the stream those items that satisfy the predicate.
- Template Parameters
-
Generator | Callable type for value generator. |
Predicate | Callable type for filter predicate. |
Consumer | Callable type for value consumer. |
- Parameters
-
ex | Sequential execution policy object. |
generate_op | Generator callable object. |
predicate_op | Predicate callable object. |
consume_op | Consumer callable object. |
template<typename Generator , typename Predicate , typename Consumer >
void grppi::keep |
( |
sequential_execution |
, |
|
|
Generator |
generate_op, |
|
|
Predicate |
predicate_op, |
|
|
Consumer |
consume_op |
|
) |
| |
Invoke Filter pattern on a data sequence with sequential execution policy. This function keeps in the stream only those items that satisfy the predicate.
- Template Parameters
-
Generator | Callable type for value generator. |
Predicate | Callable type for filter predicate. |
Consumer | Callable type for value consumer. |
- Parameters
-
ex | Sequential execution policy object. |
generate_op | Generator callable object. |
predicate_op | Predicate callable object. |
consume_op | Consumer callable object. |