BasicString.opIndex

Returns character at specified location pos.

  1. inout(CharType)[] opIndex()
  2. inout(CharType)[] opIndex()
  3. CharType opIndex(size_t pos)
    struct BasicString
    const scope pure nothrow @trusted @nogc
    opIndex
    (
    const size_t pos
    )

Examples

BasicString!char str = "abcd";

assert(str[1] == 'b');

Meta