StRoot
1
|
#include <ctype.h>
#include "Rstrstream.h"
#include <iostream>
#include <cstdio>
#include <memory>
#include <string>
Go to the source code of this file.
Functions | |
template<typename... Args> | |
std::string | FormString (const std::string &format, Args...args) |
Definition in file Stsstream.h.
std::string FormString | ( | const std::string & | format, |
Args... | args | ||
) |
This is an alternative to the ROOT's global function Form() defined in TString.cxx. The implementation of this function is based on the answer to https://stackoverflow.com/questions/2342162/stdstring-formatting-like-sprintf
Returns an std::string
Definition at line 40 of file Stsstream.h.
Referenced by StMemStat::AsString().