sivabudh
sivabudh

Reputation: 32645

Does Boost or STL provide a functionlity similar to QString?

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

Answers (1)

wkl
wkl

Reputation: 80001

Seems like you want boost.format

Upvotes: 8

Related Questions