[ fromfile: scopestorage.xml id: filevsblockscope ]
You have seen and used the scope resolution operator to extend the scope of a class or access its members with ClassName::
.
A similar syntax is used to access the individual symbols in a namespace with NamespaceName::
.
C++ also has a (unary) filescope resolution operator, ::
, that provides access to global, namespace, or file scope objects from inside an enclosed scope.
Generated: 2012-03-02 | © 2012 Alan Ezust and Paul Ezust. |