Go to the documentation of this file.
25 template <typename... ARGS>
26 std::
string format(std::string_view fmt, ARGS&&... 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);
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::string to_string(T v)
Just like std::to_string(), but with an overloaded version for std::string arguments.
#define MRPT_printf_format_check(_FMT_, _VARARGS_)
std::string format_impl(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
std::string to_string(const char *s)
std::string std::string format(std::string_view fmt, ARGS &&... args)
Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Sat Jun 27 14:00:59 UTC 2020 | |