[#BloombergLP-balxml-NamespaceRegistry-2constructor-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/NamespaceRegistry.adoc[NamespaceRegistry]::NamespaceRegistry :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<balxml_namespaceregistry.h>` Construct an empty registry. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the current default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balxml/NamespaceRegistry/2constructor-06.adoc[NamespaceRegistry](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/balxml/NamespaceRegistry/2constructor-06.adoc[_» more..._]# Construct a copy of the specified `other` namespace registry using the (optionally) specified `basicAllocator`. For a given URI, the results of calling `lookup` by URI will produce equal results for this object and for `other`. For a given integer ID, the result of calling `lookup` by ID will produce different pointers that compare equal using `strcmp`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balxml/NamespaceRegistry/2constructor-04.adoc[NamespaceRegistry]( xref:BloombergLP/balxml/NamespaceRegistry.adoc[NamespaceRegistry] const& other, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/balxml/NamespaceRegistry/2constructor-04.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#