@@ -18,8 +18,7 @@ namespace sycl {
1818template <int dimensions> class range ;
1919template <int dimensions, bool with_offset> class item ;
2020
21- // / A vector of dimensions that is used to represent an id into a global or
22- // / local range.
21+ // / A unique identifier of an item in an index space.
2322// /
2423// / \ingroup sycl_api
2524template <int dimensions = 1 > class id : public detail ::array<dimensions> {
@@ -38,7 +37,7 @@ template <int dimensions = 1> class id : public detail::array<dimensions> {
3837 class __private_class ;
3938
4039 template <typename N, typename T>
41- using EnableIfIntegral = detail::enable_if_t <std::is_integral<N>::value, T>;
40+ using EnableIfIntegral = detail::enable_if_t <std::is_integral<N>::value, T>;
4241 template <bool B, typename T>
4342 using EnableIfT = detail::conditional_t <B, T, __private_class>;
4443#endif // __SYCL_DISABLE_ID_TO_INT_CONV__
@@ -117,14 +116,14 @@ template <int dimensions = 1> class id : public detail::array<dimensions> {
117116 * will be "id op size_t"*/
118117#define __SYCL_GEN_OPT (op ) \
119118 template <typename T> \
120- EnableIfIntegral <T, bool > operator op (const T &rhs) const { \
119+ EnableIfIntegral<T, bool > operator op (const T &rhs) const { \
121120 if (this ->common_array [0 ] != rhs) \
122121 return false op true ; \
123122 return true op true ; \
124123 } \
125124 template <typename T> \
126- friend EnableIfIntegral <T, bool > operator op (const T &lhs, \
127- const id<dimensions> &rhs) { \
125+ friend EnableIfIntegral<T, bool > operator op (const T &lhs, \
126+ const id<dimensions> &rhs) { \
128127 if (lhs != rhs.common_array [0 ]) \
129128 return false op true ; \
130129 return true op true ; \
@@ -152,15 +151,15 @@ template <int dimensions = 1> class id : public detail::array<dimensions> {
152151#define __SYCL_GEN_OPT (op ) \
153152 __SYCL_GEN_OPT_BASE (op) \
154153 template <typename T> \
155- EnableIfIntegral <T, id<dimensions>> operator op(const T &rhs) const { \
154+ EnableIfIntegral<T, id<dimensions>> operator op(const T &rhs) const { \
156155 id<dimensions> result; \
157156 for (int i = 0 ; i < dimensions; ++i) { \
158157 result.common_array [i] = this ->common_array [i] op rhs; \
159158 } \
160159 return result; \
161160 } \
162161 template <typename T> \
163- friend EnableIfIntegral <T, id<dimensions>> operator op ( \
162+ friend EnableIfIntegral<T, id<dimensions>> operator op ( \
164163 const T &lhs, const id<dimensions> &rhs) { \
165164 id<dimensions> result; \
166165 for (int i = 0 ; i < dimensions; ++i) { \
0 commit comments