# input_port Template Function

## Summary

A template function that given a join_node or or_node returns a reference to a specific input port.

## Syntax

    template<size_t N, typename NT>
    typename std::tuple_element<N, typename NT::input_ports_tuple_type>::type&
    input_port(NT &n);

## Header

    #include "tbb/flow_graph.h"

Parent topic: Flow Graph

## See Also

join_node Template Class
or_node Template Class