eyalroz / cuda-kat

CUDA kernel author's tools
BSD 3-Clause "New" or "Revised" License
106 stars 8 forks source link

Add a pair class #97

Open eyalroz opened 3 years ago

eyalroz commented 3 years ago

Yes, you knew it had to happen at some point... one of the ugliest, wartiest class in C++, which you would have like to just replace with:

template <typename T1, typename T2> struct pair { T1 first; T2 second; }

and be done with it... we need to implement an std::pair equivalent. If for no other reason, then for #18, as some of the standard algorithms use pairs.