RangeConvertor.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 RangeConvertor(To, From)
const
Object
convert
(
in Object from
,
const TypeInfo to
,
RCIAllocator allocator = theAllocator
)
if (
isForwardRange!From &&
isForwardRange!To
&&
__traits(hasMember, To, "put")
)

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