cpp_trydelete

Attempts to finalize obj_ by calling its C++ destructor.

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)
  2. bool cpp_trydelete(T obj_)
    @nogc @trusted nothrow
    bool
    cpp_trydelete
    (
    T
    bool doXDtor = true
    )
    (
    ref T obj_
    )
    if ()

Parameters

obj_ T

Instance to destroy and deallocate.

Return Value

Type: bool

Whether the operation succeeded.

See Also

@(D nogc_delete), nogc_trydelete, cpp_delete

Meta