From 10922a5aad89ae1f7dc9b2ff9e72a2ae6d0eb601 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 4 Aug 2017 00:56:32 +0300 Subject: [PATCH] Doc fixes --- doc/article/docinfo-footer.html | 6 ++++++ doc/article/simple_cxx11_metaprogramming.adoc | 9 ++++++--- doc/article/simple_cxx11_metaprogramming_2.adoc | 3 +++ doc/mp11.adoc | 5 ++++- 4 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 doc/article/docinfo-footer.html diff --git a/doc/article/docinfo-footer.html b/doc/article/docinfo-footer.html new file mode 100644 index 0000000..9303432 --- /dev/null +++ b/doc/article/docinfo-footer.html @@ -0,0 +1,6 @@ + diff --git a/doc/article/simple_cxx11_metaprogramming.adoc b/doc/article/simple_cxx11_metaprogramming.adoc index c87b22e..c3ecec9 100644 --- a/doc/article/simple_cxx11_metaprogramming.adoc +++ b/doc/article/simple_cxx11_metaprogramming.adoc @@ -10,6 +10,9 @@ http://www.boost.org/LICENSE_1_0.txt # Simple {cpp}11 metaprogramming Peter Dimov 2015-05-26 +:toc: left +:idprefix: +:docinfo: shared-footer [.lead] __With variadic templates, parameter packs and template aliases__ @@ -93,7 +96,7 @@ These language improvements allow for {cpp}11 metaprogramming that is substantially different than its idomatic {cpp}03 equivalent. Boost.MPL is no longer good enough, and __something must be done__. But what? -## Type lists and `mp_rename` +## Type lists and mp_rename Let's start with the basics. Our basic data structure will be the type list: ``` @@ -291,7 +294,7 @@ readability.) template class F, class L> using mp_apply = mp_rename; ``` -## `mp_transform` +## mp_transform Let's revisit the example I gave earlier - someone hands us `std::tuple` and we need to compute `std::tuple`. We already have @@ -394,7 +397,7 @@ using result = mp_transform; static_assert( std::is_same::value, "" ); ``` -## `mp_transform`, part two +## mp_transform, part two What if we had a pair of tuples as input, and had to produce the corresponding tuple of pairs? For example, given diff --git a/doc/article/simple_cxx11_metaprogramming_2.adoc b/doc/article/simple_cxx11_metaprogramming_2.adoc index c176818..a4e1283 100644 --- a/doc/article/simple_cxx11_metaprogramming_2.adoc +++ b/doc/article/simple_cxx11_metaprogramming_2.adoc @@ -10,6 +10,9 @@ http://www.boost.org/LICENSE_1_0.txt # Simple {cpp}11 metaprogramming, part 2 Peter Dimov 2015-06-20 +:toc: left +:idprefix: +:docinfo: shared-footer [.lead] __Efficient algorithms for membership testing, random access, and retrieval by diff --git a/doc/mp11.adoc b/doc/mp11.adoc index 1c3f500..b582947 100644 --- a/doc/mp11.adoc +++ b/doc/mp11.adoc @@ -29,7 +29,7 @@ include::mp11/reference.adoc[] :leveloffset: -1 [appendix] -## Copyright and License +## Copyright, License, and Acknowledgments This documentation is @@ -37,3 +37,6 @@ This documentation is * Copyright 2017 Bjørn Reese and is distributed under the http://www.boost.org/LICENSE_1_0.txt[Boost Software License, Version 1.0]. + +The "Simple {cpp}11 metaprogramming" articles have been graciously converted to Asciidoc format for incorporation +into this documentation by Glen Fernandes.