Declaring namespaces (C++ only)

The identifier used for a namespace name should be unique. It should not be used previously as a global identifier.

namespace Raymond {
  // namespace body here...
  }

In this example, Raymond is the identifier of the namespace. If you intend to access a namespace's elements, the namespace's identifier must be known in all translation units.

Related information



[ Top of Page | Previous Page | Next Page | Contents | Index ]