#138·oneTBB

Feature request: move semantics for flow graph outputs

Author: LawrencemmCreated Apr 24, 2019Updated Sep 9, 2026
Labelsenhancement

I'd like to request adding the ability to send and receive types which are not copy constructible in a flow graph.

Obviously this makes sense only if there is exactly one edge coming from the output port to one input port.

Given the input/output ports are set at compile time, it seems possble to have a specialization for non copy constructible types that throws an exception if more than one edge is created from an output port for such a type.

Sometimes it is desirable to have a heavy object live entirely within the flow graph. One can use a shared_ptr, however that is not always compatible with the existing architecture.