通过第二个指定的参数计算第一个指定的参数的模数。
template <
int _Rank,
template <int> class _Tuple_type
>
_Tuple_type<_Rank> operator%(
const _Tuple_type<_Rank>& _Lhs,
typename _Tuple_type<_Rank>::value_type _Rhs
) restrict(amp,cpu);
template <
int _Rank,
template <int> class _Tuple_type
>
_Tuple_type<_Rank> operator%(
typename _Tuple_type<_Rank>::value_type _Lhs,
const _Tuple_type<_Rank>& _Rhs
) restrict(amp,cpu);
参数
_Rank
元组参数的等级。_Lhs
计算模块数目的元组。_Rhs
要作为模块的元组。
返回值
第一个指定参数的结果取模于第二个指定的参数。
要求
**标头:**amp.h
命名空间: 并发