[LLVMdev] anonymous namespaces in headers

David Blaikie dblaikie at gmail.com
Wed Jul 20 09:56:17 PDT 2011

In http://llvm.org/docs/doxygen/html/STLExtras_8h_source.html the
'tier' is implemented in an anonymous namespace inside a header. Is
there any reason/benefit to this?
Does it trick some amount of namespace lookup because I don't think it
hides the name at all (llvm::tier should still be valid)?

- David

More information about the llvm-dev mailing list