From f326cd9d2301c6c660ff6c82f347cb11332921b6 Mon Sep 17 00:00:00 2001 From: Zach Laine Date: Sun, 11 Feb 2024 16:10:00 -0600 Subject: [PATCH] Add a note about using "| join" to the transform_replace docs. --- doc/tutorial.qbk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/tutorial.qbk b/doc/tutorial.qbk index 6cf7a1d8..609dfca2 100644 --- a/doc/tutorial.qbk +++ b/doc/tutorial.qbk @@ -3213,6 +3213,10 @@ must be a range, and must be compatible with `r`. See the description of _replace_v_'s iterator compatibility requirements in the section above for details. +As with _replace_, _trans_replace_ can be flattened from a view of subranges +into a view of elements by piping it to `std::views::join`. See the section +on _replace_ above for an example. + Just like _replace_ and _replace_v_, _trans_replace_ and _trans_replace_v_ do silent transcoding of the result to the appropriate UTF, if applicable. If both `r` and `f(std::move(attr))` are ranges of `char`, or are both the same