VariantConvertor.convert

Convert from component to component.

It will simply pass existing from component as to component as consequence requested to component should be same as type info of from component.

class VariantConvertor(Variant : VariantN!(maxDataSize, Types), size_t maxDataSize, Types...)
const
Object
convert
(
in Object from
,
const TypeInfo to
,
RCIAllocator allocator = theAllocator
)

Parameters

from Object

original component that is to be converted.

to TypeInfo

destination object that will be constructed out for original one.

allocator RCIAllocator

optional allocator that could be used to construct to component.

Return Value

Type: Object

Resulting converted component.

Throws

ConvertorException when convertor is not able to convert from, or to component.

Meta