extent::operator[] 运算符

返回指定索引处的元素。

int operator[] (
   unsigned int _Index                     
) const restrict(amp,cpu);
                     
int& operator[] (
   unsigned int _Index                     
) restrict(amp,cpu);

参数

  • _Index
    一个从 0 到秩减 1 之间的整数。

返回值

指定索引处的元素。

要求

标题: amp.h

命名空间: 并发

请参见

参考

extent 类 (C++ AMP)