9 Sep
2010
9 Sep
'10
3:29 p.m.
But one point stays open yet: Why returning the matches as out parameter instead as return value?
If you need to perform many repeated matches on the same regex then re-using the same match_results each time saves regex_search from having to perform any memory allocation: again it's a big win in performance terms. You can't do that if the structure is returned by value. John.