RAD Studio |  |

namespace Alias

You can use an alternate name to refer to a namespace identifier. An alias is useful when you need to refer to a long, unwieldy namespace identifier.

Copy Code

      namespace BORLAND_SOFTWARE_CORPORATION {
         /* namespace-body */
         namespace NESTED_BORLAND_SOFTWARE_CORPORATION {
            /* namespace-body */
            }
         }
      // Alias namespace
      namespace BI = BORLAND_SOFTWARE_CORPORATION;
      // Use access qualifier to alias a nested namespace
      namespace NBI = BORLAND_SOFTWARE_CORPORATION::NESTED_BORLAND_SOFTWARE_CORPORATION;

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!