Yesterday in the Chrome codebase I stumbled upon this pattern:
namespace doesn’t have a name, how does anything refer to it?
Turns out this is the accepted way of including static members in a C++ namespace. Applying the
static keyword means that only one of this will ever exist, no matter how many times the class is instantiated. You’d use
static in the context of a namespace to keep it private to that namespace.