Same as the preceding overload, using a std::pmr::vector buffer.
std::pmr::vector
Declared in <bdlpcre_regex.h>
<bdlpcre_regex.h>
void namedSubpatterns(std::pmr::vector<std::pair<std::string_view, int>>* result) const;