Skip to content

Commit

Permalink
Fixes #601: Added an method to our pre-C++20 span implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalroz committed Mar 10, 2024
1 parent cffcad0 commit 47f1214
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cuda/api/detail/span.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ struct span {

pointer data() const noexcept { return data_; }
size_type size() const noexcept { return size_; }
bool empty() const noexcept { return size() == 0; }

// About cbegin() and cend() for spans, see:
// https://stackoverflow.com/q/62757700/1593077
Expand Down

0 comments on commit 47f1214

Please sign in to comment.