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 develop branch, built from commit 9d110488d0.
PrevUpHomeNext

Function template transform

boost::yap::transform

Synopsis

// In header: <boost/yap/algorithm.hpp>


template<typename Expr, typename Transform, typename... Transforms> 
  constexpr decltype(auto) 
  transform(Expr && expr, Transform && transform, Transforms &&... transforms);

Description

Returns the result of transforming (all or part of) expr using whatever overloads of Transform::operator() match expr.

[Note] Note

Transformations can do anything: they may have side effects; they may mutate values; they may mutate types; and they may do any combination of these.


PrevUpHomeNext