RingBuffer.this - multiple declarations

Function RingBuffer.this

Acquires backing storage for the requested number of elements.

this(
  size_t capacity
);

Parameters

NameDescription
capacity maximum number of live elements; zero produces the same observable inert state as .init

Allocation

Positive capacity may allocate one backing block.

Function RingBuffer.this

Unique owning storage is never copied implicitly.

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

Function RingBuffer.this

Transfers backing-storage ownership in O(1).

this(
  scope return typeof(this) rhs
);

Element addresses do not change and no T copy/move constructor runs. The source becomes the inert .init-equivalent state.