Must be a friend for engineering reasons. Unlike most value-semantic types, there is no efficient way to read the entire value of a namespace registry object.
Declared in <balxml_namespaceregistry.h>
bool
operator==(
NamespaceRegistry const& lhs,
NamespaceRegistry const& rhs);