...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::proto::functional::reverse — A PolymorphicFunctionObject type that invokes the
fusion::reverse()
algorithm on its argument.
// 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; };
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.