Closed AlexanderSinn closed 3 weeks ago
This PR adds C++17 structured binding support to amrex::GpuTuple.
amrex::GpuTuple
See case 2 in https://en.cppreference.com/w/cpp/language/structured_binding. Note that structured bindings will also use the existing amrex::get.
amrex::get
The proposed changes:
Nice! It works as expected. Note that since specializing std::get (a function template) has been outlawed since C++20, but specializing std class templates are still legit.
Summary
This PR adds C++17 structured binding support to
amrex::GpuTuple
.Additional background
See case 2 in https://en.cppreference.com/w/cpp/language/structured_binding. Note that structured bindings will also use the existing
amrex::get
.Checklist
The proposed changes: