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

Function ptr

include/fmt/format.h:3993–3996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3991 * auto s = fmt::format("{}", fmt::ptr(p));
3992 */
3993template <typename T> auto ptr(T p) -> const void* {
3994 static_assert(std::is_pointer<T>::value, "fmt::ptr used with non-pointer");
3995 return detail::bit_cast<const void*>(p);
3996}
3997
3998/**
3999 * Converts `e` to the underlying type.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected