Function Vector.at

Returns reference to element at specified location pos.

inout ref inout(Vector.ElementType) at (
  const size_t pos
) pure nothrow @nogc scope @system;

Examples

auto vec = Vector!(int, 10).build(1, 2, 3);

assert(vec.at(1) == 2);