1
0
forked from boostorg/mp11

Document that mp_bind evaluates nested mp_bind_front/mp_bind_back

This commit is contained in:
Peter Dimov
2018-09-07 23:45:57 +03:00
parent 2a0ce908ee
commit a79e6d0240

View File

@@ -37,9 +37,11 @@ http://www.boost.org/LICENSE_1_0.txt
template<template<class...> class F, class... T> struct mp_bind;
`mp_bind<F, T...>` is a quoted metafunction that implements the type-based equivalent of `boost::bind`. Its nested
template `fn<U...>` returns `F<V...>`, where `V...` is `T...` with the placeholders replaced by the corresponding element
of `U...` and the `mp_bind` expressions replaced with their corresponding evaluations against `U...`.
`mp_bind<F, T...>` is a quoted metafunction that implements the type-based
equivalent of `boost::bind`. Its nested template `fn<U...>` returns `F<V...>`,
where `V...` is `T...` with the placeholders replaced by the corresponding
element of `U...` and the `mp_bind`, `mp_bind_front`, and `mp_bind_back`
expressions replaced with their corresponding evaluations against `U...`.
For example, `mp_bind<F, int, _2, mp_bind<G, _1>>::fn<float, void>` is `F<int, void, G<float>>`.