I am using c++ 11. I want to write a function that gets formatted string, and the args (don't know how many, needs to be variadic) and retus the full string.
for example:
format = "TimeStampRecord Type=%u Version=%u OptimizeBlockID=%u WriteBlockID=%u Timestamp=%lu"
INDEX_RECORD_TYPE_TIMESTAMP = 3;
FORAMT_VERSION = 1;
optimizeBlockId = 549;
writeBlockId = 4294967295;
timestamp = 1668;
and the retu value is a string that looks like:
"TimeStampRecord Type=3 Version=1 OptimizeBlockID=549 WriteBlockID=4294967295 Timestamp=1668"
any efficient way to do so?
