Explicit access (C++ only)

To explicitly qualify a member of a namespace, use the namespace identifier with a :: scope resolution operator.

Read syntax diagramSkip visual syntax diagram
Explicit access qualification syntax

>>-namespace_name--::--member----------------------------------><

For example:

namespace VENDITTI {
  void j()
};

VENDITTI::j();

In this example, the scope resolution operator provides access to the function j held within namespace VENDITTI. The scope resolution operator :: is used to access identifiers in both global and local namespaces. Any identifier in an application can be accessed with sufficient qualification. Explicit access cannot be applied to an unnamed namespace.