Using Directive

Using directives will import every name in one namespace into another. These can be used to essentially "turn off" namespaces so that you don't have to deal with them. They can be used at namespace scope, or to limit their effect, can also be used at function scope. For example:

Listing: Function Scope
#include <hash_map>

int main()

{
   using namespace Metrowerks;
   hash_multimap<int, int> a;
}
Remarks

In the above example, any name in the Metrowerks namespace can be used in main without qualification.