A namespace is a named region of declarations. A name n declared in the namespace ns is written ns::n outside it, so that two libraries may both declare an area without a clash. The standard library declares everything in the namespace std.
Exemplos
Example 1.3 (Following the references)
The line int &r = x; makes r a second name of x, so r = 10 sets x to 10. In swap_ints(x, y), the parameters a and b are bound to x and y themselves: the function exchanges the caller’s values and main prints x = 2, y = 10. The two area calls go to two different functions, and , both 9. In total_length, the parameter const std::vector<std::string> &words reads the caller’s vector without copying its four strings, whose lengths make 42.