C++ · Vectors

Vectors and functions

A function that takes a vector can get a copy, the vector itself, or a read-only view, and the parameter's type decides which.