libsir 2.2.5
Standard Incident Reporter
Loading...
Searching...
No Matches
sir::std_format_adapter< TPolicy > Class Template Reference

Adapter for std::format (when available). More...

Inheritance diagram for sir::std_format_adapter< TPolicy >:
[legend]

Detailed Description

template<DerivedFromPolicy TPolicy>
class sir::std_format_adapter< TPolicy >

Adapter for std::format (when available).

Enabled when std::format is available on this platform and SIR_NO_STD_FORMAT is not defined.

Allows for the use of std::format in place of (or in addition to) C-style variadic argument methods.

Example:

my_logger log;
log.info_std("This is from {}!", "std::format");
The primary C++ interface to libsir.
Definition sir.hh:811
See also
std_format_logger
Template Parameters
TPolicyA derived class of policy which controls the behavior of logger and by association, its adapters.

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