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 a snapshot of the master branch, built from commit c6a8213e9b.
PrevUpHomeNext

Struct size

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

Synopsis

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


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

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

Description

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

size public member functions

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

    Returns:

    boost::size(rng)


PrevUpHomeNext