thrust::nullopt

Defined in thrust/optional.h

static constexpr nullopt_t thrust::nullopt = {nullopt_t::do_not_use{}, nullopt_t::do_not_use{}}

Represents an empty optional \synopsis static constexpr nullopt_t nullopt;.

Examples:

thrust::optional<int> a = thrust::nullopt;
void foo (thrust::optional<int>);
foo(thrust::nullopt); //pass an empty optional