Skip to content

Commit 9d4a67e

Browse files
authored
Document operator== for execution spaces (#507)
* Document operator== for execution spaces * S -> execution_space
1 parent 5c21bce commit 9d4a67e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/source/API/core/execution_spaces.rst

+4
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ Synopsis
276276
int concurrency() const;
277277
278278
void fence() const;
279+
280+
friend bool operator==(const execution_space& lhs, const execution_space& rhs);
279281
};
280282
281283
template<class MS>
@@ -327,3 +329,5 @@ Non Member Facilities
327329
* ``template<class MS> struct is_execution_space;``: typetrait to check whether a class is a execution space.
328330

329331
* ``template<class S1, class S2> struct SpaceAccessibility;``: typetraits to check whether two spaces are compatible (assignable, deep_copy-able, accessable). (see |KokkosSpaceAccessibility|_)
332+
333+
* ``bool operator==(const execution_space& lhs, const execution_space& rhs)``: tests whether the two space instances (of the same type) are identical.

0 commit comments

Comments
 (0)