[#BloombergLP-bdlpcre-RegEx-namedSubpatterns-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlpcre.adoc[bdlpcre]::xref:BloombergLP/bdlpcre/RegEx.adoc[RegEx]::namedSubpatterns
:relfileprefix: ../../../
:mrdocs:

Load into `result` the mapping between sub&hyphen;pattern names and indices&period; Names are in alphabetical order&period; The behavior is undefined unless `isPrepared()` is `true`&period;

== Synopsis

Declared in `&lt;bdlpcre&lowbar;regex&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
namedSubpatterns(xref:bsl/vector-00d.adoc[bsl::vector&lt;bsl::pair&lt;std::string&lowbar;view, int&gt;&gt;]* result) const;
----


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