FAQ 15.10 How do namespaces solve the problem of long identifiers?

graphics/new_icon.gif

There is a simple macro-like solution for the long namespace name problem

 namespace CWLN = CompanyWithLongName; 

which allows the use of either the short or the long form of the name. This solution is known as namespace aliases.



C++ FAQs
C Programming FAQs: Frequently Asked Questions
ISBN: 0201845199
EAN: 2147483647
Year: 2005
Pages: 566
Authors: Steve Summit

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net