cpp_delete

Finalizes the objects referenced by objects by calling the destructors of its members (if any).

Notes: doXDtor is used to specify whether to also call any D mangled destructors defined for the C++ type.

  1. void cpp_delete(T obj_)
  2. void cpp_delete(T[] objects)
    @nogc @trusted
    void
    cpp_delete
    (
    T
    bool doXDtor = true
    )
    ()
    if ()

Parameters

objects T[]

The objects to delete.

See Also

@(D nogc_delete), nogc_trydelete, cpp_trydelete

Meta