Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2023. The current version is 1.89.0.
boost::log::expressions::c_decor
// In header: <boost/log/expressions/formatters/c_decorator.hpp> unspecified c_decor;
C-style decorator generator object. The decorator replaces characters with specific meaning in C language with the corresponding escape sequences. The generator provides operator[] that can be used to construct the actual decorator. For example:
c_decor[ stream << attr< std::string >("MyAttr") ]
For wide-character formatting there is the similar wc_decor decorator generator object.