[FEA] Add ssize() members to device_buffer/device_uvector that returns a signed integer #927
Labels
feature request
New feature or request
good first issue
Good for newcomers
improvement
Improvement / enhancement to an existing function
Mixing signed and unsigned types cause annoying compiler warnings necessitating a lot of casts. A common source of this problem is from the fact that
size()
functions returnsize_t
which is unsigned.C++20 addressed this by adding a signed size function
ssize
.See https://stackoverflow.com/questions/56217283/why-is-stdssize-introduced-in-c20
We should add
to
device_buffer
and `device_uvectorThe text was updated successfully, but these errors were encountered: