25 template <typename... ARGS>
28 return format_impl(fmt.data(), std::forward<ARGS>(args)...);
41 inline std::string to_string<>(std::string v)
46 inline std::string to_string<>(
bool v)
48 return v ?
"true" :
"false";
51 inline std::string to_string<>(
const char* s)
53 return std::string(s);
std::string to_string(T v)
Just like std::to_string(), but with an overloaded version for std::string arguments.
std::string std::string format(std::string_view fmt, ARGS &&... args)
std::string format_impl(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::string to_string(const char *s)
#define MRPT_printf_format_check(_FMT_, _VARARGS_)