From cf864558493030a16b9b23f8941e3d247096825b Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Thu, 26 Apr 2018 00:17:03 +0200 Subject: [PATCH] Fixed minor comments. --- include/deal.II/base/patterns.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5