Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct next

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

Synopsis

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


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

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

Description

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

next public member functions

  1. template<typename ForwardIterator>  ( x) ;

    Returns:

    std::next(x)

  2. template<typename ForwardIterator> 
       ( x, 
                       n) ;

    Returns:

    std::next(x, n)


PrevUpHomeNext