microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
reloco::Debug< any > Struct Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ format()

static void reloco::Debug< any >::format ( const any &  val,
const sink &  out 
)
inlinestaticnoexcept

The documentation for this struct was generated from the following file: