Source

mana-core-cxxutils / CxxUtils / StrFormat.h

Full commit
// This file's extension implies that it's C, but it's really -*- C++ -*-.
// $Id: StrFormat.h 307875 2010-06-30 08:11:31Z binet $
/**
 * @file CxxUtils/StrFormat.h
 * @author Sebastien Binet <binet@cern.ch>
 * @date Jun 2010
 * @brief Provide helper functions to create formatted strings
 */


#ifndef CXXUTILS_STRFORMAT_H
#define CXXUTILS_STRFORMAT_H 1

// stl includes
#include <string>

namespace CxxUtils {

  /** @brief return a `std::string` according to a format `fmt` and varargs
   */
  std::string strformat(const char* fmt, ...);

} //> namespace CxxUtils

#endif // not CXXUTILS_STRFORMAT_H