Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct prior

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

Synopsis

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


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

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

Description

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

prior public member functions

  1. template<typename BidirectionalIterator> 
       ( x) ;

    Returns:

    std::prior(x)

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

    Returns:

    std::prior(x, n)


PrevUpHomeNext