Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct end

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

Synopsis

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


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

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

Description

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

end public member functions

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

    Returns:

    boost::end(rng)

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

    Returns:

    boost::end(rng)


PrevUpHomeNext