Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Global xml_decor



// In header: <boost/log/expressions/formatters/xml_decorator.hpp>

unspecified xml_decor;


XML-style decorator generator object. The decorator replaces characters that have special meaning in XML documents with the corresponding decorated counterparts. The generator provides operator[] that can be used to construct the actual decorator. For example:

xml_decor[ stream << attr< std::string >("MyAttr") ]

For wide-character formatting there is the similar wxml_decor decorator generator object.