Using Declaration

Using declarations can bring individual names into the current namespace. They can be used either at namespace scope (outside of functions) or at function scope (inside of functions). Here is an example use of using a declaration at namespace scope:

Listing: Namespace Scope
#include <hash_set>
 
using Metrowerks::hash_multiset;

int main()

{
   hash_multiset<int> a;
}
Remarks

Anywhere below the declaration, hash_set can be referred to without the use of the Metrowerks qualifier.