1 min readAug 2, 2020
The nameless or the anonymous namespaces are used when we do not want the declarations to be visible beyond the file it is declared in. This way, since they are declared in a namespace, they are not global. Also, since it is an unnamed namespace, we will not be able to use it outside that file, limiting their scope to the declaring file.