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 an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Struct rbegin

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

Synopsis

// In header: <boost/proto/functional/range/rbegin.hpp>


struct rbegin :  proto::callable {
  // member classes/structs/unions
  template<typename This, typename Range> 
  struct result<This(Range)> :  boost::range_reverse_iterator<
      typename boost::remove_reference<Range>::type
  >
  {
  };

  // public member functions
  template<typename Range> 
    typename boost::range_reverse_iterator< Range >::type 
    operator()(Range &) const;
  template<typename Range> 
    typename boost::range_reverse_iterator< Range const >::type 
    operator()(Range const &) const;
};

Description

A PolymorphicFunctionObject type that invokes the boost::rbegin() accessor function on its arguments.

rbegin public member functions

  1. template<typename Range> 
      typename boost::range_reverse_iterator< Range >::type 
      operator()(Range & rng) const;

    Returns:

    boost::rbegin(rng)

  2. template<typename Range> 
      typename boost::range_reverse_iterator< Range const >::type 
      operator()(Range const & rng) const;

    Returns:

    boost::rbegin(rng)


PrevUpHomeNext