Skip to content

Commit 3d580ff

Browse files
committed
Add && to Function and Args
Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent be618af commit 3d580ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sycl/doc/extensions/experimental/sycl_ext_oneapi_kernel_properties.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,11 @@ namespace sycl::ext::oneapi::experimental {
383383
template <typename Function, typename Properties = empty_properties_t>
384384
struct kernel_function {
385385

386-
kernel_function(Function f, Properties p = syclx::properties{});
386+
kernel_function(Function &&f, Properties p = syclx::properties{});
387387

388388
// Available only if Function is invocable with Args
389389
template <typename... Args>
390-
void operator()(Args... args) const;
390+
void operator()(Args&&... args) const;
391391

392392
// Available only if Properties contains no run-time properties
393393
static constexpr auto get(syclx::properties_tag) const;
@@ -402,7 +402,7 @@ struct kernel_function {
402402

403403
```c++
404404
template <typename... Args>
405-
void operator()(Args... args) const;
405+
void operator()(Args&&... args) const;
406406
```
407407

408408
_Constraints_: `Function` is invocable with `Args`.

0 commit comments

Comments
 (0)