Back to Onetbb

receiver

doc/main/specification/source/flow_graph/receiver.rst

2023.0.0469 B
Original Source

.. SPDX-FileCopyrightText: 2019-2021 Intel Corporation .. .. SPDX-License-Identifier: CC-BY-4.0

======== receiver

[flow_graph.receiver]

A base class for all nodes that may receive messages.

.. code:: cpp

namespace oneapi {
namespace tbb {
namespace flow {

    template< typename T >
    class receiver { /*unspecified*/ };

} // namespace flow
} // namespace tbb
} // namespace oneapi

The T type is a message type.