Re: [Boost-bugs] [Boost C++ Libraries] #10894: Add an adaptor to iterate a range in pairs of (current element, next element)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10894: Add an adaptor to iterate a range in pairs of (current element, next element)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-01-21 08:51:26


#10894: Add an adaptor to iterate a range in pairs of (current element, next
element)
-------------------------------------------------+-------------------------
  Reporter: Matthäus Brandl | Owner: neilgroves
  (brandl.matthaeus@… | Status: new
      Type: Feature Requests | Component: range
 Milestone: To Be Determined | Severity: Not
   Version: Boost Development Trunk | Applicable
Resolution: | Keywords: range
                                                 | adaptor pairwise
-------------------------------------------------+-------------------------

Comment (by Matthäus Brandl):

 This can also be achieved in a more concise way:

 {{{#!cpp
 boost::combine(
     boost::make_iterator_range(c, 0, -1),
     boost::make_iterator_range(c, 1, 0))
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10894#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC