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

Debug<reloco::weak_rc<T>>: like Debug<rc<T>> above, but attempts lock() to read the pointee (the same fallback formatter<weak_rc<T>> already uses): rc(use_count: N) { value } if still alive, or rc(use_count: 0) { (expired) } once the last owning rc has released it. More...

#include <reloco_debug.hpp>

Static Public Member Functions

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

Detailed Description

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

Debug<reloco::weak_rc<T>>: like Debug<rc<T>> above, but attempts lock() to read the pointee (the same fallback formatter<weak_rc<T>> already uses): rc(use_count: N) { value } if still alive, or rc(use_count: 0) { (expired) } once the last owning rc has released it.

Member Function Documentation

◆ format()

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

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