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 the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function template optional_manip

boost::log::optional_manip

Synopsis

// In header: <boost/log/utility/manipulators/optional.hpp>


template<typename OptionalT> 
  boost::enable_if_c< !is_scalar< OptionalT >::value &&!is_array< OptionalT >::value, optional_manipulator< OptionalT, void >>::type 
  optional_manip(OptionalT const & opt);

Description

Optional manipulator generator function.

[Note] Note

opt object must outlive the created manipulator object.

Parameters:

opt

Optional value to output. The optional value must support contextual conversion to bool and dereferencing, and its dereferencing result must support stream output.

Returns:

Manipulator to be inserted into the stream.


PrevUpHomeNext