Skip to content

Commit 7805aa3

Browse files
authored
[SYCL][DOC] Add noexcept specifier for has_property() (#6632)
As discussed here #6614 has_property() version for non compile-time-properties should be marked as `noexcept`.
1 parent 8da7b95 commit 7805aa3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sycl/doc/extensions/supported/sycl_ext_oneapi_accessor_properties.asciidoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class T {
139139

140140
// Enabled only when propertyT is a run time property
141141
template<typename propertyT>
142-
bool has_property() const;
142+
bool has_property() const noexcept;
143143

144144
// Enabled only when propertyT is a compile time property
145145
template<typename propertyT>
@@ -228,7 +228,7 @@ Replace Table 4.6: Common member functions of the SYCL property interface with t
228228
a|
229229
```c++
230230
template<typename propertyT>
231-
bool has_property() const;
231+
bool has_property() const noexcept;
232232
``` | Returns true if T was constructed with the property specified by propertyT. Returns false if it was not.
233233
Available only if propertyT is not a compile-time-constant property.
234234
a|
@@ -495,4 +495,5 @@ NOTE: The constructors for no_offset and no_alias are unspecified as users must
495495
|1|2020-06-18|Joe Garvey|Initial public draft
496496
|2|2020-09-08|Joe Garvey|Rewrote as a vendor extension in the ONEAPI namespace.
497497
|3|2021-01-28|Jessica Davies|Modify semantics of no_alias
498+
|4|2022-08-23|Nikita Kornev|Add noexcept specifier to has_property() for non compile-time-constant properties
498499
|========================================

0 commit comments

Comments
 (0)