...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::log::optional_manip
// In header: <boost/log/utility/manipulators/optional.hpp> template<typename OptionalT, typename NoneElementT, std::size_t N> boost::enable_if_c< !is_scalar< OptionalT >::value &&!is_array< OptionalT >::value, optional_manipulator< OptionalT, NoneElementT * >>::type optional_manip(OptionalT const & opt, NoneElementT(&) none);
Optional manipulator generator function.
Note | |
---|---|
Both opt and none objects must outlive the created manipulator object. |
Parameters: |
|
||||
Returns: |
Manipulator to be inserted into the stream. |