<cuda/std/optional>

See the documentation of the standard header <optional>

Extensions

  • All features are available from C++14 onwards.

  • All features are available at compile time if the value type supports it.

Restrictions

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