From: Luca Heltai Date: Sun, 15 Apr 2018 22:38:15 +0000 (+0200) Subject: Fixed DW comments. X-Git-Tag: v9.0.0-rc1~96^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6d4aad9a4ed63209aeab7801b85798ff6d33a1f;p=dealii.git Fixed DW comments. --- diff --git a/doc/news/changes/minor/20180406LucaHeltai b/doc/news/changes/minor/20180406LucaHeltai index 120b5aff4d..9504ebf33c 100644 --- a/doc/news/changes/minor/20180406LucaHeltai +++ b/doc/news/changes/minor/20180406LucaHeltai @@ -1,5 +1,5 @@ New: Patterns::Tools::to_string() and Patterns::Tools::to_value() simplify the conversion to and from -strings of arbirarily complex types. +strings of arbitrarily complex types.
(Luca Heltai, 2018/04/06) diff --git a/include/deal.II/base/patterns.h b/include/deal.II/base/patterns.h index 9fe3d0c219..700c621e8f 100644 --- a/include/deal.II/base/patterns.h +++ b/include/deal.II/base/patterns.h @@ -1276,9 +1276,13 @@ namespace Patterns * auto t = std::make_tuple(1.0, std::make_pair(1, "ciao")); * auto s = Patterns::Tools::to_string(t); * - * std::cout << s; // will print "1 % 1 : ciao + * std::cout << s; // will print "1 % 1 : ciao"" * @endcode * + * See the documentation of the class Patterns::Tools::Convert, and of the + * helper class Patterns::Tools::RankInfo for details on the way separators + * are selected when outputting STL container types. + * * @author Luca Heltai, 2018 */ template @@ -1295,9 +1299,14 @@ namespace Patterns * auto t = std::make_tuple(1.0, std::make_pair(1, "ciao")); * to_value("2 % 3 : mondo", t); * auto s = Patterns::Tools::to_string(t); - * std::cout << s; // will print "2 % 3 : mondo + * std::cout << s; // will print "2 % 3 : mondo"" * @endcode * + * See the documentation of the class Patterns::Tools::Convert, and of the + * helper class Patterns::Tools::RankInfo for details on the separators you + * should use in your string patterns when converting from a string to a + * container type. + * * @author Luca Heltai, 2018 */ template