omni::graph::exec::unstable::toSpan

Defined in omni/graph/exec/unstable/INode.h

inline Span<INode*const> omni::graph::exec::unstable::toSpan(const std::vector<omni::core::ObjectPtr<INode>> &nodes) noexcept

Converts an contiguous array of NodePtr to a Span. This is useful when returning the array via the ABI.

No data is copied during this conversion. This method simply extracts a pointer to the node array and places it in a span.

The returned omni::graph::exec::unstable::INode objects will not have omni::core::IObject::acquire() called before being returned.