Reputation: 32645
Using QString, one can do the following:
QString const sentence = QString("First name: %1, Last name: %2")
.arg("John")
.arg("Doe");
// sentence is now "First name: John, Last name: Doe"
Does Boost / STL have something similar? I would like to construct a string similar to this way without using sstream << operator.
Upvotes: 3
Views: 533