NVIDIA / libcudacxx

[ARCHIVED] The C++ Standard Library for your entire system. See https://github.com/NVIDIA/cccl
https://nvidia.github.io/libcudacxx
Other
2.29k stars 186 forks source link

Add `cuda::std::expected` #452

Closed miscco closed 1 year ago

miscco commented 1 year ago

With C++23 there is std::expected, which enxpands std::optional with an error channel

We should implement this together with std::optional to allow users to properly return values or errors