AppendBuffer.cut

Cuts the last n elements from the current content. If n is greater than the current content length, all elements in the content are cut.

  1. T[] cut(size_t n)
    class AppendBuffer(T, Base : AppendBufferImpl)
    T[]
    cut
    (
    size_t n
    )
    out (elements) { assert (elements.length <= n); }
  2. T cut()

Parameters

n size_t

number of elements to cut from content, if available

Return Value

Type: T[]

last n elements cut from the current content, if n is at most the content length or all elements from the current content otherwise.

Meta