CISC 3142
Programming Paradigms in C++
Namespaces


Overview

The following material is some background and related discussion; you can skip it if you like.

The Notion of Space

Address Spaces

Namespaces

Namespaces in C++

Defining the Namespace

To define a namespace, enclose the relevant code in a namespace scope:
namespace mynamespace {
…
…
}

The Global Namespace Scope

The std Namespace

Explicitly Qualifying a Name with the Scope Resolution Operator

The using Directive

The using Declaration