-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement tuple interface for cuda vector types #1410
Conversation
ed0b53b
to
249b877
Compare
Thanks for considering the feature request.
To avoid putting additional overloads of |
The preferred method would indeed be a hidden friend. Its a bit sad, that we need to define the |
d7db687
to
fc11825
Compare
libcudacxx/test/libcudacxx/cuda/tuple/vector_types_tuple_element.pass.cpp
Outdated
Show resolved
Hide resolved
libcudacxx/test/libcudacxx/cuda/tuple/vector_types_tuple_size.pass.cpp
Outdated
Show resolved
Hide resolved
libcudacxx/include/cuda/std/detail/libcxx/include/__tuple_dir/vector_types.h
Outdated
Show resolved
Hide resolved
This specializes the `std::tuple_size` and `std::tuple_element` traits so that they are usable with cuda vector types. We also provide overloads for `std::get`, which together enables structured bindings support in C++17 onwards. Fixes NVIDIA#1406
…nt need that interface
fc11825
to
d3f39e2
Compare
This specializes the
std::tuple_size
andstd::tuple_element
traits so that they are usable with cuda vector types.We also provide overloads for
std::get
, which together enables structured bindings support in C++17 onwards.Fixes #1406