Template Class Optional

Template Class Optional#

Class Documentation#

template<typename T, typename = void>
class Optional#

Optional data type in FFI.

Note

Compared to std::optional, Optional<ObjectRef> akes less storage as it used nullptr to represent nullopt.

Template Parameters:

T – The underlying type of the optional.