TaggedConvertor.destruct

Destroy component created using this convertor.

Destroy component created using this convertor. The method will attempt to downcast converted component to type supported by functional destructor when the type is rooted in Object class, otherwise it will attempt to downcast converted to placeholding object of value supported by functional destructor. In latest case, the method will dispose out of placeholding object using passed allocator.

class TaggedConvertor(Tagged : TaggedAlgebraic!Union, Union)
const
void
destruct
(
const TypeInfo from
,
ref Object converted
,
RCIAllocator allocator = theAllocator
)

Parameters

converted Object

component that should be destroyed.

allocator RCIAllocator

allocator used to allocate converted component.

Meta