Transform a value received from .NET to an Excel return value
template< class T > std::vector<T> toXl<T>( array<T>^ vector ); template< class T > ple::mtx_ptrs<T> toXl<T>( array<T, 2>^ matrix );
A CLR single-dimensional array type, whose elements are one of the following:
A CLR two-dimensional array type, whose elements are one of the following:
A C++ array, that may be passed directly to the CXlOper assignment operator.
The various forms of this template function transform CLR arrays to equivalent C++ types. The transforms are designed to ensure that the correct overload of CXlOper::= will be invoked, when the method is used to return values to Excel, e.g.:
xloResult = toXl(clrValue);
A large number of specializations exist, for transforming between similar but different types. See toXl for a complete list.