Template Class Optional#
Defined in File object.h
Class Documentation#
-
template<typename T, typename = void>
class Optional# Optional data type in FFI.
Note
ObjectRef, ObjectPtr, and Arc values use a nullable ObjectPtr-backed representation. Other storage-enabled T use one TVMFFIAny, while non-storage-enabled T fall back to std::optional<T>.
- Template Parameters:
T – The underlying type of the optional.