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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.