MCPcopy Create free account
hub / github.com/fmtlib/fmt / vformat_message

Function vformat_message

test/format-test.cc:2003–2008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2001auto format_as(test_enum e) -> int { return e; }
2002
2003std::string vformat_message(int id, const char* format, fmt::format_args args) {
2004 auto buffer = fmt::memory_buffer();
2005 fmt::format_to(fmt::appender(buffer), "[{}] ", id);
2006 vformat_to(fmt::appender(buffer), format, args);
2007 return to_string(buffer);
2008}
2009
2010template <typename... Args>
2011std::string format_message(int id, const char* format, const Args&... args) {

Callers 1

format_messageFunction · 0.85

Calls 3

to_stringFunction · 0.85
format_toFunction · 0.50
vformat_toFunction · 0.50

Tested by

no test coverage detected