StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Functions
Stsstream.h File Reference
#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)
 

Detailed Description

Author
Victor Perev 8/22/2003 Wrapper for old <strstream>

Definition in file Stsstream.h.

Function Documentation

template<typename... Args>
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().