MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / format_value

Function format_value

extlibs/fmt/include/fmt/ostream.h:92–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91template <typename Char, typename T>
92void format_value(buffer<Char>& buf, const T& value,
93 locale_ref loc = locale_ref()) {
94 formatbuf<Char> format_buf(buf);
95 std::basic_ostream<Char> output(&format_buf);
96 #if !defined(FMT_STATIC_THOUSANDS_SEPARATOR)
97 if (loc) output.imbue(loc.get<std::locale>());
98 #endif
99 output.exceptions(std::ios_base::failbit | std::ios_base::badbit);
100 output << value;
101 buf.resize(buf.size());
102}
103
104// Formats an object of type T that has an overloaded ostream operator<<.
105template <typename T, typename Char>

Callers 2

formatMethod · 0.85
formatMethod · 0.85

Calls 3

locale_refClass · 0.85
resizeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected