Skip to content

Commit

Permalink
[SYCL][Doc] Update spec wording regarding C++20 (#16713)
Browse files Browse the repository at this point in the history
We decided in KhronosGroup/SYCL-Docs#667 to use this wording for SYCL
APIs that require C++ features added after C++17. The next version of
the SYCL spec formally adopts this wording in
KhronosGroup/SYCL-Docs#680.
  • Loading branch information
gmlueck authored Jan 23, 2025
1 parent cc6148d commit e880f95
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ class device_image {
backend ext_oneapi_get_backend() const noexcept;
std::vector<std::byte> ext_oneapi_get_backend_content() const;
#if defined(__cpp_lib_span)
std::span<std::byte> ext_oneapi_get_backend_content_view() const;
#endif
std::span<std::byte> ext_oneapi_get_backend_content_view() const; // Requires C++20
/*...*/
};
Expand Down Expand Up @@ -154,8 +152,7 @@ std::span<std::byte> ext_oneapi_get_content_backend_view() const;
----
!====

Available only when the compiler defines the `__cpp_lib_span` feature-test macro
(which is defined in {cpp}20 and higher).
Minimum C++ Version: {cpp}20

_Constraints:_ Available only when `State` is `bundle_state::executable`.

Expand Down

0 comments on commit e880f95

Please sign in to comment.