<cuda/std/expected>#

2026-10-01

2 min read time

Applies to Linux and Windows

This page documents cuda::std::expected in libhipcxx, a vocabulary type for error handling that holds either a value or an error, available from C++14 onwards.

See the documentation of the standard header <expected>

Extensions#

All features are available from C++14 onwards.

Restrictions#

On device no exceptions are thrown in case of a bad access.