MCPcopy Create free account
hub / github.com/ablab/spades / format

Function format

ext/include/cppformat/format.h:2051–2060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2049// Formats a value.
2050template <typename Char, typename T>
2051void format(BasicFormatter<Char> &f, const Char *&format_str, const T &value) {
2052 std::basic_ostringstream<Char> os;
2053 os << value;
2054 internal::Arg arg;
2055 internal::Value &arg_value = arg;
2056 std::basic_string<Char> str = os.str();
2057 arg_value = internal::MakeValue<Char>(str);
2058 arg.type = internal::Arg::STRING;
2059 format_str = f.format(format_str, arg);
2060}
2061
2062// Reports a system error without throwing an exception.
2063// Can be used to report errors from destructors.

Callers 15

format_custom_argMethod · 0.70
write_msgMethod · 0.50
nodeinfoMethod · 0.50
write_msgMethod · 0.50
nodeinfoMethod · 0.50
LogMethod · 0.50
ProcessUnresolvedMethod · 0.50
load_itemsFunction · 0.50
write_msgMethod · 0.50
write_msgMethod · 0.50
human_readable_timeFunction · 0.50
human_readable_memoryFunction · 0.50

Calls 2

strMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected