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 an older version of Boost and was released in 2021. The current version is 1.89.0.
boost::yap::transform_strict
// In header: <boost/yap/algorithm.hpp> template<typename Expr, typename Transform, typename... Transforms> decltype(auto) constexpr transform_strict(Expr && expr, Transform && transform, Transforms &&... transforms);
Returns the result of transforming expr using whichever overload of Transform::operator() best matches expr. If no overload of Transform::operator() matches, a compile-time error results.
![]() |
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. |