[basic.scope.namespace] (original) (raw)

Any namespace-definition for a namespace N introduces a namespace scopethat includes the namespace-bodyfor every namespace-definition for N.

For each non-friend redeclaration or specialization whose target scope is or is contained by the scope, the portion after thedeclarator-id,class-head-name, orenum-head-nameis also included in the scope.

The global scope is the namespace scope of the global namespace ([basic.namespace]).

[Example 1: namespace Q { namespace V { void f(); } void V::f() { // in the scope of V void h(); // declares Q​::​V​::​h } } — _end example_]