cpp_trydelete

Attempts to finalize 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. bool cpp_trydelete(T[] objects)
    @nogc @trusted
    bool
    cpp_trydelete
    (
    T
    bool doFree = true
    )
    ()
  2. bool cpp_trydelete(T obj_)

Parameters

objects T[]

The objects to try to delete.

Return Value

Type: bool

Whether the operation succeeded.

See Also

@(D nogc_delete), nogc_trydelete, cpp_delete

Meta