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 reverse

boost::proto::functional::reverse — A PolymorphicFunctionObject type that invokes the fusion::reverse() algorithm on its argument.

Synopsis

struct reverse :  proto::callable {
  template<typename This, typename Expr> 
  struct result<This(Expr)> :  
    fusion::result_of::reverse<
      typename boost::remove_reference< Expr >::type const 
    >
  {
  };

  // public member functions
  template<typename Expr> 
    typename fusion::result_of::reverse< Expr const  >::type 
    operator()(Expr const &) const;
};

Description

A PolymorphicFunctionObject type that invokes the fusion::reverse() algorithm on its argument. This is useful for defining a CallableTransform like reverse(_), which reverses the order of the children of a Proto expression node.

reverse public member functions

  1. template<typename Expr> 
      typename fusion::result_of::reverse< Expr const  >::type 
      operator()(Expr const & expr) const;

PrevUpHomeNext