Boost C++ Libraries 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.

Function template replace_placeholders



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

template<typename Expr, typename... T> 
  decltype(auto) replace_placeholders(Expr && expr, T &&... t);


Returns expr with the placeholders replaced by YAP terminals containing the given values.

[Note] Note

replace_placeholders(expr, t...) is only valid if expr is an expression, and max_p <= sizeof...(t), where max_p is the maximum placeholder index in expr.