|
|
The :: scope resolution operator specifies the scope to which a member belongs. It has this general form:
name::member-name
Here, name is the name of the class or namespace that contains the member specified by member-name. Put differently, name specifies the scope within which can be found the identifier specified by member-name.
To reference the global scope, you do not specify a scope name. For example, to refer to a global variable called count that is being hidden by a local variable called count, you can use this statement:
::count
The scope resolution operator is not supported by C.
|
|