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

Debug<reloco::rc<T>>: rc(use_count: N) { value }, or rc(use_count: 0) { (null) } for an empty pointer – unlike the {} Display output (which just prints the pointee's value, matching every other smart pointer), this reports the live strong-reference count, a genuinely debug-only diagnostic. The pointee is rendered via microfmt::as_debug, so a pointee with its own Debug<T> (e.g. a reflect-dump-generated struct) still recurses correctly. More...

#include <reloco_debug.hpp>

Static Public Member Functions

static void format (const rc< T > &val, const sink &out) noexcept
 

Detailed Description

template<typename T>
struct reloco::Debug< rc< T > >

Debug<reloco::rc<T>>: rc(use_count: N) { value }, or rc(use_count: 0) { (null) } for an empty pointer – unlike the {} Display output (which just prints the pointee's value, matching every other smart pointer), this reports the live strong-reference count, a genuinely debug-only diagnostic. The pointee is rendered via microfmt::as_debug, so a pointee with its own Debug<T> (e.g. a reflect-dump-generated struct) still recurses correctly.

Member Function Documentation

◆ format()

template<typename T >
static void reloco::Debug< rc< T > >::format ( const rc< T > &  val,
const sink &  out 
)
inlinestaticnoexcept

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