From 97720ed72d9d628ee906e718843e1adc3dfb0b92 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 8 Jun 2017 16:35:55 +0300 Subject: [PATCH] Rename tuple_for_each.hpp to tuple.hpp --- README.md | 2 +- doc/html/mp11.html | 6 +++--- doc/mp11/reference.adoc | 2 +- doc/mp11/{tuple_for_each.adoc => tuple.adoc} | 4 ++-- include/boost/mp11.hpp | 2 +- include/boost/mp11/{tuple_for_each.hpp => tuple.hpp} | 7 ++++--- include/boost/mp11_single.hpp | 7 ++++--- test/tuple_for_each.cpp | 2 +- test/tuple_for_each_cx.cpp | 2 +- 9 files changed, 18 insertions(+), 16 deletions(-) rename doc/mp11/{tuple_for_each.adoc => tuple.adoc} (85%) rename include/boost/mp11/{tuple_for_each.hpp => tuple.hpp} (89%) diff --git a/README.md b/README.md index 05119f5..5861ed5 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Tested on [Travis](https://travis-ci.org/pdimov/mp11/) and [Appveyor](https://ci * [Integer Sequences](doc/mp11/integer_sequence.adoc) -* [A "for each" algorithm for tuple-like types](doc/mp11/tuple_for_each.adoc) +* [Tuple Operations](doc/mp11/tuple.adoc) ## License diff --git a/doc/html/mp11.html b/doc/html/mp11.html index 2a9c058..2b30e0e 100644 --- a/doc/html/mp11.html +++ b/doc/html/mp11.html @@ -589,7 +589,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
  • index_sequence_for<T…​>
  • -
  • A "for each" algorithm for tuple-like types, <boost/mp11/tuple_for_each.hpp> +
  • Tuple Operations, <boost/mp11/tuple.hpp> @@ -2807,7 +2807,7 @@ of U…​ and the mp_bind expressions replace
    -

    A "for each" algorithm for tuple-like types, <boost/mp11/tuple_for_each.hpp>

    +

    Tuple Operations, <boost/mp11/tuple.hpp>

    tuple_for_each(tp, f)

    @@ -2847,7 +2847,7 @@ expression f(std::get<J>(std::forward<Tp>(tp))) for diff --git a/doc/mp11/reference.adoc b/doc/mp11/reference.adoc index 113b0bd..208c9b3 100644 --- a/doc/mp11/reference.adoc +++ b/doc/mp11/reference.adoc @@ -35,6 +35,6 @@ include::bind.adoc[] include::integer_sequence.adoc[] -include::tuple_for_each.adoc[] +include::tuple.adoc[] :leveloffset: -1 diff --git a/doc/mp11/tuple_for_each.adoc b/doc/mp11/tuple.adoc similarity index 85% rename from doc/mp11/tuple_for_each.adoc rename to doc/mp11/tuple.adoc index 52afd04..53b8c19 100644 --- a/doc/mp11/tuple_for_each.adoc +++ b/doc/mp11/tuple.adoc @@ -7,8 +7,8 @@ See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt //// -[#tuple_for_each] -# A "for each" algorithm for tuple-like types, +[#tuple] +# Tuple Operations, :idprefix: ## tuple_for_each(tp, f) diff --git a/include/boost/mp11.hpp b/include/boost/mp11.hpp index 05a51ca..5e45939 100644 --- a/include/boost/mp11.hpp +++ b/include/boost/mp11.hpp @@ -17,6 +17,6 @@ #include #include #include -#include +#include #endif // #ifndef BOOST_MP11_HPP_INCLUDED diff --git a/include/boost/mp11/tuple_for_each.hpp b/include/boost/mp11/tuple.hpp similarity index 89% rename from include/boost/mp11/tuple_for_each.hpp rename to include/boost/mp11/tuple.hpp index a58098e..8ac99cc 100644 --- a/include/boost/mp11/tuple_for_each.hpp +++ b/include/boost/mp11/tuple.hpp @@ -1,5 +1,5 @@ -#ifndef BOOST_MP11_TUPLE_FOR_EACH_HPP_INCLUDED -#define BOOST_MP11_TUPLE_FOR_EACH_HPP_INCLUDED +#ifndef BOOST_MP11_TUPLE_HPP_INCLUDED +#define BOOST_MP11_TUPLE_HPP_INCLUDED // Copyright 2015, 2017 Peter Dimov. // @@ -21,6 +21,7 @@ namespace boost namespace mp11 { +// tuple_for_each namespace detail { @@ -50,4 +51,4 @@ template BOOST_CONSTEXPR F tuple_for_each( Tp && tp, F && f ) } // namespace mp11 } // namespace boost -#endif // #ifndef BOOST_TUPLE_FOR_EACH_HPP_INCLUDED +#endif // #ifndef BOOST_TUPLE_HPP_INCLUDED diff --git a/include/boost/mp11_single.hpp b/include/boost/mp11_single.hpp index d11c020..af97b45 100644 --- a/include/boost/mp11_single.hpp +++ b/include/boost/mp11_single.hpp @@ -2653,8 +2653,8 @@ template using mp_bind_back_q = mp_bind_back BOOST_CONSTEXPR F tuple_for_each( Tp && tp, F && f ) } // namespace mp11 } // namespace boost -#endif // #ifndef BOOST_TUPLE_FOR_EACH_HPP_INCLUDED +#endif // #ifndef BOOST_TUPLE_HPP_INCLUDED #endif // #ifndef BOOST_MP11_HPP_INCLUDED diff --git a/test/tuple_for_each.cpp b/test/tuple_for_each.cpp index 449fd15..467d776 100644 --- a/test/tuple_for_each.cpp +++ b/test/tuple_for_each.cpp @@ -7,7 +7,7 @@ // http://www.boost.org/LICENSE_1_0.txt -#include +#include #include #include #include diff --git a/test/tuple_for_each_cx.cpp b/test/tuple_for_each_cx.cpp index 730f6d2..55e8d15 100644 --- a/test/tuple_for_each_cx.cpp +++ b/test/tuple_for_each_cx.cpp @@ -6,7 +6,7 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt -#include +#include #include // Technically std::tuple isn't constexpr enabled in C++11, but it works with libstdc++