From d6d4aad9a4ed63209aeab7801b85798ff6d33a1f Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Mon, 16 Apr 2018 00:38:15 +0200 Subject: [PATCH] Fixed DW comments. --- doc/news/changes/minor/20180406LucaHeltai | 2 +- include/deal.II/base/patterns.h | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) 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 -- 2.39.5