[#BloombergLP-balxml-PrefixStack-lookupNamespaceId]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/PrefixStack.adoc[PrefixStack]::lookupNamespaceId
:relfileprefix: ../../../
:mrdocs:

Return ID of the namespace registered for the specified `prefix` or &hyphen;1 if not registered&period;

== Synopsis

Declared in `&lt;balxml&lowbar;prefixstack&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
lookupNamespaceId(std::string&lowbar;view const& prefix) const;
----

== Return Value

the namespace ID for `prefix`, or &hyphen;1 if not registered

== Parameters

[cols="1,4"]
|===
| Name| Description
| *prefix*
| namespace prefix to look up
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
