ScopeBuffer.opSlice

Retrieve a slice into the result.

  1. T[] opSlice(size_t lower, size_t upper)
  2. inout(T)[] opSlice()
    struct ScopeBuffer(T, alias realloc = .realloc)
    @system
    inout(T)[]
    opSlice
    inout
    (
    )
    if (
    isAssignable!T &&
    !hasElaborateDestructor!T
    &&
    !hasElaborateCopyConstructor!T
    &&
    !hasElaborateAssign!T
    )

Return Value

Type: inout(T)[]

A slice into the temporary buffer that is only valid until the next put() or ScopeBuffer goes out of scope.

Meta