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 a snapshot of the develop branch, built from commit 26d7d9b59f.
PrevUpHomeNext

Header <boost/algorithm/gather.hpp>

namespace boost {
  namespace algorithm {

    // iterator-based gather implementation 
    template<typename BidirectionalIterator, typename Pred> 
      std::pair< BidirectionalIterator, BidirectionalIterator > 
      gather(BidirectionalIterator first, BidirectionalIterator last, 
             BidirectionalIterator pivot, Pred pred);

    // range-based gather implementation 
    template<typename BidirectionalRange, typename Pred> 
      std::pair< typename boost::range_iterator< const BidirectionalRange >::type, typename boost::range_iterator< const BidirectionalRange >::type > 
      gather(const BidirectionalRange & range, 
             typename boost::range_iterator< const BidirectionalRange >::type pivot, 
             Pred pred);
  }
}

PrevUpHomeNext