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

Function getsign

include/fmt/format.h:1045–1048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1043}
1044
1045template <typename Char> constexpr auto getsign(sign s) -> Char {
1046 return static_cast<Char>(static_cast<char>(
1047 ((' ' << 24) | ('+' << 16) | ('-' << 8)) >> (static_cast<int>(s) * 8)));
1048}
1049
1050template <typename T> FMT_CONSTEXPR auto count_digits_fallback(T n) -> int {
1051 int count = 1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected