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 range_manip

boost::log::range_manip

Synopsis

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


template<typename RangeT, typename DelimiterT> 
  boost::disable_if_c< is_scalar< DelimiterT >::value, range_manipulator< RangeT, DelimiterT >>::type 
  range_manip(RangeT const & range, DelimiterT const & delimiter);

Description

Range manipulator generator function.

[Note] Note

Both range and delimiter objects must outlive the created manipulator object.

Parameters:

delimiter

Delimiter to separate elements in the output. Optional. If not specified, elements are output without separation.

range

Range of elements to output. The range must support begin and end iterators, and its elements must support stream output.

Returns:

Manipulator to be inserted into the stream.


PrevUpHomeNext