# copy_body

[flow_graph.copy_body]

`copy_body` is a function template that returns a copy of the body function object from the following nodes:

- continue_node

- function_node

- multifunction_node

- input_node

- async_node

    namespace oneapi {
    namespace tbb {
    namespace flow {

        // Defined in header <oneapi/tbb/flow_graph.h>

        template< typename Body, typename Node >
        Body copy_body( Node &n );

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