I'm implementing some custom memory allocator, is possible to call an object destructor directly?

For example

void deallocate(T)(T object)
{
  assert(object !is null);

  object.~this();
  rawDeallocate(cast(void *)object);
}

Reply via email to