I'm somewhat new to C++, coming from python. One piece of functionality I really miss is the string format operator. I've seen plenty of examples where this can be used in the printf() function, however, sometimes it is handy just to substitute placeholders in a string variable. Here is an example from python using the mysqldb module:
...
stmt = 'INSERT INTO %s(pid, starttime) VALUES("%s","%s")' % ('pids', int(p0.pid), episode[0][1])
cursor.execute(stmt)
Can you do something similar in C++. I'm not finding any examples googling.