O'Reilly logo
  • Michael Moore thinks this is interesting:

operator[]

From

Cover of The C++ Programming Language, Fourth Edition

Note

This function defines the behavior of the [] operator for class Vector, for example

Vector v = new Vector(6);

//Add some stuff to vector

v[2] //Using [] operator