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

Function num_bits

include/fmt/format.h:410–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408 return (std::numeric_limits<T>::max)();
409}
410template <typename T> constexpr auto num_bits() -> int {
411 return std::numeric_limits<T>::digits;
412}
413// std::numeric_limits<T>::digits may return 0 for 128-bit ints.
414template <> constexpr auto num_bits<native_int128>() -> int { return 128; }
415template <> constexpr auto num_bits<native_uint128>() -> int { return 128; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected