namespace

Applies to: cpp

A namespace groups names to avoid clashes; the standard library lives in std. You qualify a name with :: (std::vector) or bring it in with using (sparingly).

std::cout << "hi";          // qualified
using std::vector;          // bring one name in

See also: include-header