microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
microfmt::sink_provider_traits< Tag > Struct Template Reference

Static customization point describing a sink backend. More...

Detailed Description

template<typename Tag>
struct microfmt::sink_provider_traits< Tag >

Static customization point describing a sink backend.

Specialize for a tag type to provide context_type and write. Add flush to expose that optional operation; omitting it makes it report as unsupported through sink_provider_ref::can_flush instead of failing at compile time.

For a stateless backend (answers purely from global/static state, e.g. a discard/null sink), declare using context_type = void; and drop the value_ref<context_type> parameter from every operation.

Template Parameters
TagTag identifying the sink implementation.

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