| Taskflow: A General-purpose Task-parallel Programming System

Loading...
Searching...
No Matches
tf::BinaryTransformLike Concept Reference

concept to check if a binary transformation operation is valid More...

`#include <taskflow/core/flow_builder.hpp>`

## Concept definition

template<typename C, typename B1, typename B2, typename O>
concept tf::BinaryTransformLike =
requires(C c, B1 b1, B2 b2, O o) {
*o = c(*b1, *b2);
}
tf::BinaryTransformLike
concept to check if a binary transformation operation is valid
Definition flow_builder.hpp:96

## Detailed Description

concept to check if a binary transformation operation is valid

Template Parameters

  C | Callable type.
  B1 | First input iterator type.
  B2 | Second input iterator type.
  O | Output iterator type.

Satisfied by a callable that accepts the values referenced by two input iterators and produces a result assignable through an output iterator. Specifically, the following expression must be valid:

*o = c(*b1, *b2);