Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Language/Namespace/NamedAndUnnamed

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

An unnamed namespace {...} is a way to restrict the visibility of a global variable to one single file. If you dislike the name that somebody gave to a namespace, namespace NRNew = NROld; creates your own alias for it. Additional information about unnamed namespaces (includes interactive examples)