Namespace Alias

"Metrowerks" is a long name but it is not likely to conflict with other library's namespaces. You can easily shorten the Metrowerks namespace while still retaining the protection of namespaces through the use of an alias. For example, here is how to refer to the Metrowerks namespace as " ewl":

Listing: Namespace Alias
#include <hash_map>
 
namespace ewl = Metrowerks;

int main()

{
   ewl::hash_map<int, int> a;
}

The short name " ewl" is much more likely to conflict with other's libraries, but as the implementor of your code you can choose your aliases such that there is no conflict.