microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
microfmt::null_sink Class Reference

Null/Discard sink that discards all formatted output. More...

#include <microfmt.hpp>

Static Public Member Functions

static constexpr sink as_sink () noexcept
 Returns a shared, stateless type-erased sink instance that drops writes.
 

Detailed Description

Null/Discard sink that discards all formatted output.

Functions as a zero-cost /dev/null sink for benchmarking or conditional output.

Member Function Documentation

◆ as_sink()

static constexpr sink microfmt::null_sink::as_sink ( )
inlinestaticconstexprnoexcept

Returns a shared, stateless type-erased sink instance that drops writes.

Returns
A sink struct with a no-op write callback.

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