hey could someone please tell me what's the purpose of using the namespace to group entities when you dont' specify an identifier?
like i'm used to using it like
Code:namepace mySpace { int val = 10; } namespace dogSpace { int val = 23; } cout << mySpace::val << dogSpace::val
But then while doing some research on some coding i found it being used without an identifer like this, without any "identifier" specified, So what's the point of that?? Is it simply for the programmer to group things different from the other coding methods/variable as you do with classes in java? jst 4 conveniece and readability?
ThanxCode:namespace { void getX(); //Not actual method void getY(); //Not actual method }