| Home | Libraries | People | FAQ | More

## 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)`