File optional.h#

Parent directory (tvm/ffi)

Runtime Optional container types.

Definition (tvm/ffi/optional.h)#

Detailed Description#

Optional<T> uses a hybrid representation. ObjectRef, ObjectPtr, and Arc values keep the established one-pointer ObjectPtr representation, with nullptr representing nullopt. Other types that enable Any storage are backed by one Struct TVMFFIAny. Types that do not enable storage (for example, non-owning view types) fall back to std::optional<T>.

Includes#

Included By#

Namespaces#