From d3998a2a1ff3e89baeb86a10ef9e49edea130265 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 9 Dec 2012 10:25:38 -0800 Subject: [PATCH] Add another example. --- README.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.rst b/README.rst index bf6c4290..df35012e 100644 --- a/README.rst +++ b/README.rst @@ -24,6 +24,11 @@ This prints "Hello, world!" to stdout:: fmt::Print("Hello, {0}!") << "world"; +Arguments are accessed by position and arguments' indices can be repeated: + + std::string s = str(fmt::Format("{0}{1}{0}") << "abra" << "cad"); + // s == "abracadabra" + Motivation ----------