AppendBuffer.opIndex

Returns the i-th element in content.

If T is a static array type, a slice to the element is returned.

class AppendBuffer(T, Base : AppendBufferImpl)
static if(!is(T == void))
R
opIndex
(
size_t i
)
out (element) { static if (static_array_element) { assert (element.length == T.length); } }

Parameters

i size_t

element index

Return Value

Type: R

i-th element in content

Out: If T is a static array type, the length of the returned slice is T.length.

Meta