mirror of
https://github.com/boostorg/regex.git
synced 2025-07-29 20:17:24 +02:00
Add support for Boost.Ref in match_results::format.
Update docs accordingly. Fixes #4020. [SVN r60678]
This commit is contained in:
@ -69,7 +69,10 @@ that computes the replacement string from a function call: either
|
||||
replacement text, or either `fmt(what, out)` or `fmt(what, out, flags)`, both of
|
||||
which write the replacement text to `*out`, and then return the new
|
||||
OutputIterator position. In each case `what` is the [match_results] object
|
||||
that represents the match found.
|
||||
that represents the match found. Note that if the formatter is a functor, then it is
|
||||
['passed by value]: users that want to pass function objects with internal state
|
||||
might want to use [@../../../../doc/html/ref.html Boost.Ref] to wrap the object so
|
||||
that it's passed by reference.
|
||||
|
||||
[*Effects]: Constructs an [regex_iterator] object:
|
||||
|
||||
|
Reference in New Issue
Block a user