0

I am confused by the use of an un-named namespace and its practical applications.

The C++ Programming Language states that.

namespace {

//Content

}

is equal to

namespace $$$ {

//Content

}
using namespace $$$;

Where $$$ is a unknown and random name.

However I wonder where exactly would an un-named namespace be useful, Because though we are outlinining its scope, we just get it back to being global with using namespace $$$; , So How is it useful?

2
Contributors
1
Reply
3
Views
7 Years
Discussion Span
Last Post by siddhant3s
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.