Skip to content

Commit

Permalink
Tweak mdbuffer example code
Browse files Browse the repository at this point in the history
  • Loading branch information
wphicks committed Nov 15, 2023
1 parent eb4fddf commit 29bd6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/include/raft/core/mdbuffer.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ struct default_buffer_container_policy {
* using std::visit, as in the following example:
*
* @code{.cpp}
* void foo(raft::resources const& res, raft::mdbuffer<float, raft::matrix_extent<int>> data) {
* void foo(raft::resources const& res, raft::mdbuffer<float, raft::matrix_extent<int>>&& data) {
* std::visit([](auto&& view) {
* // Do something with the view, including (possibly) dispatching based on
* // whether it is a host, device, managed, or pinned mdspan
Expand Down

0 comments on commit 29bd6b4

Please sign in to comment.