Add another example.

This commit is contained in:
Victor Zverovich 2012-12-09 10:25:38 -08:00
parent cb458293a3
commit d3998a2a1f

View File

@ -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
----------