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

PrevUpHomeNext

Function template replace_placeholders

boost::yap::replace_placeholders

Synopsis

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


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

Description

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.


PrevUpHomeNext