From: Luca Heltai Date: Wed, 25 Apr 2018 22:17:03 +0000 (+0200) Subject: Fixed minor comments. X-Git-Tag: v9.0.0-rc1~96^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6178%2Fhead;p=dealii.git Fixed minor comments. --- diff --git a/include/deal.II/base/patterns.h b/include/deal.II/base/patterns.h index 700c621e8f..842d65e91e 100644 --- a/include/deal.II/base/patterns.h +++ b/include/deal.II/base/patterns.h @@ -1297,7 +1297,9 @@ namespace Patterns * * @code * auto t = std::make_tuple(1.0, std::make_pair(1, "ciao")); - * to_value("2 % 3 : mondo", t); + * // replace the value of 't' by the parsed content of the string argument: + * Patterns::Tools::to_value("2 % 3 : mondo", t); + * * auto s = Patterns::Tools::to_string(t); * std::cout << s; // will print "2 % 3 : mondo"" * @endcode @@ -1307,6 +1309,10 @@ namespace Patterns * should use in your string patterns when converting from a string to a * container type. * + * Notice that the current content of variable @p t is ignored. Its type is + * used to infer how to interpret the string. If the string is succesfully + * parsed, then @p t will be set to the parsed content of @p s. + * * @author Luca Heltai, 2018 */ template