1
0
forked from boostorg/mp11

Rename tuple_for_each.hpp to tuple.hpp

This commit is contained in:
Peter Dimov
2017-06-08 16:35:55 +03:00
parent 8662f0ee76
commit 97720ed72d
9 changed files with 18 additions and 16 deletions

View File

@@ -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

View File

@@ -589,7 +589,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
<li><a href="#index_sequence_for_t">index_sequence_for&lt;T&#8230;&#8203;&gt;</a></li>
</ul>
</li>
<li><a href="#tuple_for_each">A "for each" algorithm for tuple-like types, &lt;boost/mp11/tuple_for_each.hpp&gt;</a>
<li><a href="#tuple">Tuple Operations, &lt;boost/mp11/tuple.hpp&gt;</a>
<ul class="sectlevel3">
<li><a href="#tuple_for_each_tp_f">tuple_for_each(tp, f)</a></li>
</ul>
@@ -2807,7 +2807,7 @@ of <code>U&#8230;&#8203;</code> and the <code>mp_bind</code> expressions replace
</div>
</div>
<div class="sect2">
<h3 id="tuple_for_each">A "for each" algorithm for tuple-like types, &lt;boost/mp11/tuple_for_each.hpp&gt;</h3>
<h3 id="tuple">Tuple Operations, &lt;boost/mp11/tuple.hpp&gt;</h3>
<div class="sect3">
<h4 id="tuple_for_each_tp_f">tuple_for_each(tp, f)</h4>
<div class="literalblock">
@@ -2847,7 +2847,7 @@ expression <code>f(std::get&lt;J&gt;(std::forward&lt;Tp&gt;(tp)))</code> for <co
</div>
<div id="footer">
<div id="footer-text">
Last updated 2017-06-07 00:11:03 GTBDT
Last updated 2017-06-08 04:54:36 GTBDT
</div>
</div>
</body>

View File

@@ -35,6 +35,6 @@ include::bind.adoc[]
include::integer_sequence.adoc[]
include::tuple_for_each.adoc[]
include::tuple.adoc[]
:leveloffset: -1

View File

@@ -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, <boost/mp11/tuple_for_each.hpp>
[#tuple]
# Tuple Operations, <boost/mp11/tuple.hpp>
:idprefix:
## tuple_for_each(tp, f)

View File

@@ -17,6 +17,6 @@
#include <boost/mp11/set.hpp>
#include <boost/mp11/bind.hpp>
#include <boost/mp11/integer_sequence.hpp>
#include <boost/mp11/tuple_for_each.hpp>
#include <boost/mp11/tuple.hpp>
#endif // #ifndef BOOST_MP11_HPP_INCLUDED

View File

@@ -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<class Tp, class F> 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

View File

@@ -2653,8 +2653,8 @@ template<class Q, class... T> using mp_bind_back_q = mp_bind_back<Q::template fn
} // namespace boost
#endif // #ifndef BOOST_MP11_BIND_HPP_INCLUDED
#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.
//
@@ -2675,6 +2675,7 @@ namespace boost
namespace mp11
{
// tuple_for_each
namespace detail
{
@@ -2704,6 +2705,6 @@ template<class Tp, class F> 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

View File

@@ -7,7 +7,7 @@
// http://www.boost.org/LICENSE_1_0.txt
#include <boost/mp11/tuple_for_each.hpp>
#include <boost/mp11/tuple.hpp>
#include <boost/core/lightweight_test.hpp>
#include <tuple>
#include <memory>

View File

@@ -6,7 +6,7 @@
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include <boost/mp11/tuple_for_each.hpp>
#include <boost/mp11/tuple.hpp>
#include <boost/config.hpp>
// Technically std::tuple isn't constexpr enabled in C++11, but it works with libstdc++