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#
optional(File optional.h)string(File string.h)tvm/ffi/any.h(File any.h)tvm/ffi/error.h(File error.h)tvm/ffi/object.h(File object.h)tvm/ffi/string.h(File string.h)utility