Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct reverse

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

Synopsis

// In header: <boost/proto/functional/fusion/reverse.hpp>


struct reverse :  proto::callable {
  // member classes/structs/unions
  template<typename This, typename Seq> 
  struct result<This(Seq)> :  result< This(Seq const &) > {
  };
  template<typename This, typename Seq> 
  struct result<This(Seq &)> :  fusion::result_of::reverse< Seq > {
  };

  // public member functions
  template<typename Seq> 
    typename fusion::result_of::reverse< Seq >::type operator()(Seq &) const;
  template<typename Seq> 
    typename fusion::result_of::reverse< Seq const >::type 
    operator()(Seq 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 Seq> 
      typename fusion::result_of::reverse< Seq >::type operator()(Seq & seq) const;

    Returns:

    fusion::reverse(seq)

  2. template<typename Seq> 
      typename fusion::result_of::reverse< Seq const >::type 
      operator()(Seq const & seq) const;

    Returns:

    fusion::reverse(seq)


PrevUpHomeNext