AppendBuffer.opIndexAssign

Sets the i-th element in content.

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

Parameters

val T

value to set

i size_t

element index

Return Value

Type: R

element (or a slice to the element if T is a static array type).

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

Meta