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

Method char_value

include/fmt/base.h:2175–2179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2173
2174 template <typename T, FMT_ENABLE_IF(is_code_unit<T>::value)>
2175 constexpr FMT_INLINE value(T x FMT_BUILTIN) : char_value(x) {
2176 static_assert(
2177 std::is_same<T, char>::value || std::is_same<T, char_type>::value,
2178 "mixing character types is disallowed");
2179 }
2180
2181 constexpr FMT_INLINE value(float x FMT_BUILTIN) : float_value(x) {}
2182 constexpr FMT_INLINE value(double x FMT_BUILTIN) : double_value(x) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected