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 an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Function template replace_placeholders

boost::yap::replace_placeholders

Synopsis

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


template<typename Expr, typename... T> 
  decltype(auto) constexpr 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