allocatorOf

Identify the allocator used to convert component.

Identify the allocator used to convert component. The object will be downcasted to AllocatorAware interface and if it succeeded convertor used to convert component will be returned. For non-object components empty allocator will be returned as no convertor can be extracted from them.

  1. RCIAllocator allocatorOf(T object)
  2. RCIAllocator allocatorOf(T component)
    nothrow @nogc @safe
    RCIAllocator
    allocatorOf
    (
    T
    )
    (
    auto ref T component
    )
    if (
    !(
    is(T : Object) ||
    is(T : const Object)
    ||
    is(T : immutable Object)
    )
    )
  3. RCIAllocator allocatorOf(T allocator)
  4. const(RCIAllocator) allocatorOf(T allocator)
  5. immutable(RCIAllocator) allocatorOf(T allocator)
  6. RCIAllocator allocatorOf(T object, RCIAllocator allocator)

Return Value

Type: RCIAllocator

RCIAllocator used in conversion process.

Meta