ScratchBuffer.this - multiple declarations

Function ScratchBuffer.this

Establishes backing storage for exactly the requested capacity.

this(
  size_t capacity
);

Parameters

NameDescription
capacity number of element slots to allocate; zero creates the same observable inert state as .init

Allocation

Positive capacity may allocate one backing block.

Function ScratchBuffer.this

Unique owning storage is never copied implicitly.

@disable this(
  scope ref return typeof(this) rhs
);

Function ScratchBuffer.this

Transfers the backing allocation without relocating live T values.

this(
  scope return typeof(this) rhs
);

The moved-from source becomes the inert .init-equivalent state.