cuda::experimental::stf::operator&

Defined in include/cuda/experimental/__stf/internal/execution_policy.cuh

inline hw_scope cuda::experimental::stf::operator&(const hw_scope &lhs, const hw_scope &rhs)

Bitwise AND operator for combining two hw_scope values.

This function performs bitwise AND on the underlying types of two hw_scope values. It’s useful for checking if a scope if included into another hw_scope value.

Note

The function includes assertions to ensure that lhs and rhs are within the allowed range.

Parameters
  • lhs – The left-hand side hw_scope.

  • rhs – The right-hand side hw_scope.

Returns

A new hw_scope that is the bitwise AND of lhs and rhs.