BasicString.opIndexAssign

Assign character at specified location pos to value val.

Returns 'val'.

struct BasicString
scope pure nothrow @trusted @nogc
opIndexAssign
(,
const size_t pos
)

Examples

BasicString!char str = "abcd";

str[1] = 'x';

assert(str == "axcd");

Meta