From 4500b673f2e81d2e039dd3669998e39c2f76a565 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 10 May 2017 23:23:56 +0300 Subject: [PATCH] Update documentation --- doc/html/mp11.html | 18 ++++++++++++++++-- doc/mp11/bind.qbk | 6 ++++++ doc/mp11/definitions.qbk | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/doc/html/mp11.html b/doc/html/mp11.html index 2a1b025..fd46376 100644 --- a/doc/html/mp11.html +++ b/doc/html/mp11.html @@ -165,6 +165,8 @@ ..., _9
mp_bind<F, T...>
+
mp_bind_q<Q, + T...>
mp_bind_front<F, T...>
mp_bind_front_q<Q, T...>
mp_bind_back<F, T...>
@@ -249,7 +251,7 @@

A quoted metafunction is a class with a public metafunction - called fn, for example + member called fn, for example

struct Q1 { template<class...> using fn = void; };
 struct Q2 { template<class T> using fn = T*; };
@@ -1698,6 +1700,18 @@
 
 
+
template<class Q, class... T> using mp_bind_q = mp_bind<Q::template fn, T...>;
+
+

+ As mp_bind, but takes a + quoted metafunction. +

+
+
+
template<template<class...> class F, class... T> struct mp_bind_front;
@@ -1840,7 +1854,7 @@
 
- +

Last revised: May 09, 2017 at 21:23:56 GMT

Last revised: May 10, 2017 at 20:23:11 GMT


diff --git a/doc/mp11/bind.qbk b/doc/mp11/bind.qbk index 424eaf5..5cc48c3 100644 --- a/doc/mp11/bind.qbk +++ b/doc/mp11/bind.qbk @@ -38,6 +38,12 @@ of `U...` and the `mp_bind` expressions replaced with their corresponding evalua For example, `mp_bind>::fn` is `F>`. [endsect] +[section `mp_bind_q`] + template using mp_bind_q = mp_bind; + +As `mp_bind`, but takes a quoted metafunction. +[endsect] + [section `mp_bind_front`] template class F, class... T> struct mp_bind_front; diff --git a/doc/mp11/definitions.qbk b/doc/mp11/definitions.qbk index 23586d7..ce7def2 100644 --- a/doc/mp11/definitions.qbk +++ b/doc/mp11/definitions.qbk @@ -18,7 +18,7 @@ A /metafunction/ is a class template or a template alias whose parameters are al template using F2 = T*; template using F3 = std::integral_constant; -A /quoted metafunction/ is a class with a public metafunction called `fn`, for example +A /quoted metafunction/ is a class with a public metafunction member called `fn`, for example struct Q1 { template using fn = void; }; struct Q2 { template using fn = T*; };