PrevUpHomeNext

Function template distance

boost::text::distance

Synopsis

// In header: <boost/text/algorithm.hpp>


template<typename Iter, typename Sentinel> 
  std::ptrdiff_t distance(Iter first, Sentinel last);

Description

Range-friendly version of std::distance(), taking an iterator and a sentinel.


PrevUpHomeNext