共用方式為


inner_product (STL/CLR)

計算兩個範圍的元素產品的總和並將它加入至指定的初始值計算總和產品二進位運算由其他指定的二進位運算取代通用程序的結果。

template<class _InIt1, class _InIt2, class _Ty> inline
    _Ty inner_product(_InIt1 _First1, _InIt1 _Last1, _InIt2 _First2,
        _Ty _Val);
template<class _InIt1, class _InIt2, class _Ty, class _Fn21,
       class _Fn22> inline
    _Ty inner_product(_InIt1 _First1, _InIt1 _Last1, _InIt2 _First2,
        _Ty _Val, _Fn21 _Func1, _Fn22 _Func2);

備註

這個函式的行為與 STL 數值函式 inner_product 相同。 如需詳細資訊,請參閱inner_product

需求

標頭: <cliext/numeric>

命名空間: cliext

請參閱

參考

numeric (STL/CLR)