Load into result the mapping between sub-pattern names and indices. Names are in alphabetical order. The behavior is undefined unless isPrepared() is true.
Declared in <bdlpcre_regex.h>
void
namedSubpatterns(bsl::vector<bsl::pair<std::string_view, int>>* result) const;