Function RingBuffer.tryPushBack

Appends one element without overwriting existing contents.

bool tryPushBack(U)(
  auto ref U value
)
if (is(Unqual!U == T) && __traits(compiles, emplace(cast(T*)null, forward!value)));

Returns false when full. A failed insertion leaves the logical sequence unchanged.

Lvalues use the ordinary core.lifetime.emplace construction path. For an exact T rvalue whose type defines a D language move constructor, the move constructor is invoked directly at the final storage address; insertion therefore does not depend on the unresolved rvalue behavior of core.lifetime.emplace tracked in issue #8.