syclreference.com
  1. SYCL
  2. | API Reference
  3. | Accessors
  4. | accessor
  5. | operator-

operator-

Creates and returns a new accessor with its offset changed by rhs


template <typename overloadDependantT, typename >
accessor<elemT, 1, kMode, kTarget, access::placeholder::true_t> operator-(int rhs) const
(1)
  1. Creates and returns a new accessor with its offset changed by rhs
    Parameters:
    • int rhs : the offset to subtract to the current accessor's offset in the
    Returns: A new accessor with its get_offset()[0] equal to

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000