Udostępnij za pomocą


Operatory przestrzeni nazw współbieżności (AMP)

operator==

Określa, czy określone argumenty są równe.

template <
    int _Rank,
    template <int> class _Tuple_type
>
bool operator== (
    const _Tuple_type<_Rank>& _Lhs,
    const _Tuple_type<_Rank>& _Rhs) restrict(amp);

Parametry

_Ranga
Ranga argumentów krotki.

_Lhs
Jedna z krotki do porównania.

_Rhs
Jedna z krotki do porównania.

Wartość zwracana

true jeśli krotki są równe; w przeciwnym razie, false.

operator!=

Określa, czy określone argumenty nie są równe.

template <
    int _Rank,
    template <int> class _Tuple_type
>
bool operator!= (
    const _Tuple_type<_Rank>& _Lhs,
    const _Tuple_type<_Rank>& _Rhs) restrict(amp);

Parametry

_Ranga
Ranga argumentów krotki.

_Lhs
Jedna z krotki do porównania.

_Rhs
Jedna z krotki do porównania.

Wartość zwracana

true jeśli krotki nie są równe; w przeciwnym razie, false.

operator+

Oblicza sumę mądry składników określonych argumentów.

template <
    int _Rank,
    template <int> class _Tuple_type
>
class _Tuple_type> _Tuple_type<_Rank>   operator+(
    const _Tuple_type<_Rank>& _Lhs,
    const _Tuple_type<_Rank>& _Rhs) restrict(amp,cpu);

template <
    int _Rank,
    template <int> class _Tuple_type
>
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
>
class _Tuple_type> _Tuple_type<_Rank>   operator+(
    typename _Tuple_type<_Rank>::value_type _Lhs,
    const _Tuple_type<_Rank>& _Rhs) restrict(amp,cpu);

Parametry

_Ranga
Ranga argumentów krotki.

_Lhs
Jeden z argumentów do dodania.

_Rhs
Jeden z argumentów do dodania.

Wartość zwracana

Suma składników określonych argumentów.

operator-

Oblicza różnicę między określonymi argumentami.

template <
    int _Rank,
    template <int> class _Tuple_type
>
_Tuple_type<_Rank>   operator-(
    const _Tuple_type<_Rank>& _Lhs,
    const _Tuple_type<_Rank>& _Rhs) restrict(amp,cpu);

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);

Parametry

_Ranga
Ranga argumentów krotki.

_Lhs
Argument, z który ma zostać odejmowany.

_Rhs
Argument do odejmowania.

Wartość zwracana

Różnica między określonymi argumentami jest rozróżniana przez składnik.

operator*

Oblicza produkt mądry składników określonych argumentów.

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);

Parametry

_Ranga
Ranga argumentów krotki.

_Lhs
Jedna z krotki do pomnożenia.

_Rhs
Jedna z krotki do pomnożenia.

Wartość zwracana

Produkt mądry składników określonych argumentów.

operator/

Oblicza iloraz mądry składników określonych argumentów.

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);

Parametry

_Ranga
Ranga argumentów krotki.

_Lhs
Krotka, która ma być podzielona.

_Rhs
Krotka do podzielenia.

Wartość zwracana

Iloraz mądry składników określonych argumentów.

operator%

Oblicza modulo pierwszego określonego argumentu przez drugi określony argument.

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);

Parametry

_Ranga
Ranga argumentów krotki.

_Lhs
Krotka, z której jest obliczany modulo.

_Rhs
Krotka do modulo przez.

Wartość zwracana

Wynik pierwszego określonego modulu argumentu drugiego określonego argumentu.

Zobacz też

Przestrzeń nazw współbieżności