Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct distance

boost::proto::functional::distance — A PolymorphicFunctionObject type that invokes the std::distance() function on its arguments.

Synopsis

// In header: <boost/proto/functional/std/iterator.hpp>


struct distance :  proto::callable {
  // member classes/structs/unions
  template<typename This, typename InputIterator> 
  struct result<> {
    // types
    typedef  ;
  };

  // public member functions
  template<typename InputIterator> 
     (, ) ;
};

Description

A PolymorphicFunctionObject type that invokes the std::distance() function on its arguments.

distance public member functions

  1. template<typename InputIterator> 
       ( first,  last) ;

    Returns:

    std::distance(first, last)


PrevUpHomeNext