Template Function email::utils::string_format

Function Documentation

template<typename ...Args>
std::string email::utils::string_format(const std::string &format, Args... args)

Format a string.

Parameters:
  • format – the format string

  • args – the arguments

Throws:

std::runtime_error – if underlying snprintf() call fails

Returns:

the formatted string