alias_namespc code example
Example: alias_namespc
#include <iostream>
using namespace std;
namespace verylargenamespacename{
int x;
namespace nestednamespace{
void display(){
cout << x;
}
}
}
namespace one = verylargenamespacename;
namespace nested = one :: nestednamespace;
int main()
{
one ::x = 100;
nested :: display();
return 0;
}