|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Debug<reloco::any>: any(<type name>), using reloco's own type_id-based type identity – never compiler RTTI – to name the held type. There is no way to format the held value generically (see this file's header comment): any exposes no formatting vtable, only a type identity, so this is necessarily limited to naming the type, not printing its contents.
More...
#include <reloco_debug.hpp>
Static Public Member Functions | |
| static void | format (const any &val, const sink &out) noexcept |
Debug<reloco::any>: any(<type name>), using reloco's own type_id-based type identity – never compiler RTTI – to name the held type. There is no way to format the held value generically (see this file's header comment): any exposes no formatting vtable, only a type identity, so this is necessarily limited to naming the type, not printing its contents.
<type name> is whatever microfmt::formatter<reloco::type_id> already renders for val.type_id(): the name registered via RELOCO_TYPE_ID_NAME for the held type, <unnamed type> if the held type has no registered name, or <no type> if val is empty.
|
inlinestaticnoexcept |