Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ The extension introduces the following functions:
- +any_of+
- +all_of+
- +none_of+
- +leader+
- +broadcast+
- +reduce+
- +exclusive_scan+
Expand Down Expand Up @@ -181,6 +182,15 @@ It is undefined behavior for any of these functions to be invoked within a +para
|Return +true+ if _pred_ returns +true+ for no element in the range [_first_, _last_). _first_, _last_ and _pred_ must be the same for all work-items in the group.
|===

==== Elect

|===
|Function|Description

|+template <typename Group> bool leader(Group g);+
|Return +true+ if the calling work-item is the elected leader of the group.
|===

==== Collectives

In this section, the meaning of "exclusive scan" and "inclusive scan" are as defined in Sections 29.8.7 and 29.8.8 of the {cpp}17 specification, respectively.
Expand Down