You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Constraints: Available only if sycl::is_group_v<std::decay_t> is true and Ptr is a pointer.
So are the group algorithms meant to also take in iterators? (I would presume this should be restricted to random access iterators, to be more precise.) Since these algorithms are like their std counterparts, I think they probably should. For example, for an accessor acc, it would make sense to do something like joint_any_of(group, acc.begin(), acc.end()) , but as the spec is, this is not necessarily allowed.
The text was updated successfully, but these errors were encountered:
The first paragraph of 4.17.4. Group algorithms library says that iterators can be passed to group algorithms:
However, all the
joint_*
functions have a restriction that the input is a pointer. Example: 4.17.4.1. any_of, all_of and none_ofSo are the group algorithms meant to also take in iterators? (I would presume this should be restricted to random access iterators, to be more precise.) Since these algorithms are like their
std
counterparts, I think they probably should. For example, for an accessoracc
, it would make sense to do something likejoint_any_of(group, acc.begin(), acc.end())
, but as the spec is, this is not necessarily allowed.The text was updated successfully, but these errors were encountered: