forked from boostorg/mp11
Rename tuple_for_each.hpp to tuple.hpp
This commit is contained in:
@@ -46,7 +46,7 @@ Tested on [Travis](https://travis-ci.org/pdimov/mp11/) and [Appveyor](https://ci
|
|||||||
|
|
||||||
* [Integer Sequences](doc/mp11/integer_sequence.adoc)
|
* [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
|
## License
|
||||||
|
|
||||||
|
@@ -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<T…​></a></li>
|
<li><a href="#index_sequence_for_t">index_sequence_for<T…​></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#tuple_for_each">A "for each" algorithm for tuple-like types, <boost/mp11/tuple_for_each.hpp></a>
|
<li><a href="#tuple">Tuple Operations, <boost/mp11/tuple.hpp></a>
|
||||||
<ul class="sectlevel3">
|
<ul class="sectlevel3">
|
||||||
<li><a href="#tuple_for_each_tp_f">tuple_for_each(tp, f)</a></li>
|
<li><a href="#tuple_for_each_tp_f">tuple_for_each(tp, f)</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -2807,7 +2807,7 @@ of <code>U…​</code> and the <code>mp_bind</code> expressions replace
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="tuple_for_each">A "for each" algorithm for tuple-like types, <boost/mp11/tuple_for_each.hpp></h3>
|
<h3 id="tuple">Tuple Operations, <boost/mp11/tuple.hpp></h3>
|
||||||
<div class="sect3">
|
<div class="sect3">
|
||||||
<h4 id="tuple_for_each_tp_f">tuple_for_each(tp, f)</h4>
|
<h4 id="tuple_for_each_tp_f">tuple_for_each(tp, f)</h4>
|
||||||
<div class="literalblock">
|
<div class="literalblock">
|
||||||
@@ -2847,7 +2847,7 @@ expression <code>f(std::get<J>(std::forward<Tp>(tp)))</code> for <co
|
|||||||
</div>
|
</div>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<div id="footer-text">
|
<div id="footer-text">
|
||||||
Last updated 2017-06-07 00:11:03 GTBDT
|
Last updated 2017-06-08 04:54:36 GTBDT
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@@ -35,6 +35,6 @@ include::bind.adoc[]
|
|||||||
|
|
||||||
include::integer_sequence.adoc[]
|
include::integer_sequence.adoc[]
|
||||||
|
|
||||||
include::tuple_for_each.adoc[]
|
include::tuple.adoc[]
|
||||||
|
|
||||||
:leveloffset: -1
|
:leveloffset: -1
|
||||||
|
@@ -7,8 +7,8 @@ See accompanying file LICENSE_1_0.txt or copy at
|
|||||||
http://www.boost.org/LICENSE_1_0.txt
|
http://www.boost.org/LICENSE_1_0.txt
|
||||||
////
|
////
|
||||||
|
|
||||||
[#tuple_for_each]
|
[#tuple]
|
||||||
# A "for each" algorithm for tuple-like types, <boost/mp11/tuple_for_each.hpp>
|
# Tuple Operations, <boost/mp11/tuple.hpp>
|
||||||
:idprefix:
|
:idprefix:
|
||||||
|
|
||||||
## tuple_for_each(tp, f)
|
## tuple_for_each(tp, f)
|
@@ -17,6 +17,6 @@
|
|||||||
#include <boost/mp11/set.hpp>
|
#include <boost/mp11/set.hpp>
|
||||||
#include <boost/mp11/bind.hpp>
|
#include <boost/mp11/bind.hpp>
|
||||||
#include <boost/mp11/integer_sequence.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
|
#endif // #ifndef BOOST_MP11_HPP_INCLUDED
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#ifndef BOOST_MP11_TUPLE_FOR_EACH_HPP_INCLUDED
|
#ifndef BOOST_MP11_TUPLE_HPP_INCLUDED
|
||||||
#define BOOST_MP11_TUPLE_FOR_EACH_HPP_INCLUDED
|
#define BOOST_MP11_TUPLE_HPP_INCLUDED
|
||||||
|
|
||||||
// Copyright 2015, 2017 Peter Dimov.
|
// Copyright 2015, 2017 Peter Dimov.
|
||||||
//
|
//
|
||||||
@@ -21,6 +21,7 @@ namespace boost
|
|||||||
namespace mp11
|
namespace mp11
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// tuple_for_each
|
||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -50,4 +51,4 @@ template<class Tp, class F> BOOST_CONSTEXPR F tuple_for_each( Tp && tp, F && f )
|
|||||||
} // namespace mp11
|
} // namespace mp11
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
#endif // #ifndef BOOST_TUPLE_FOR_EACH_HPP_INCLUDED
|
#endif // #ifndef BOOST_TUPLE_HPP_INCLUDED
|
@@ -2653,8 +2653,8 @@ template<class Q, class... T> using mp_bind_back_q = mp_bind_back<Q::template fn
|
|||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
#endif // #ifndef BOOST_MP11_BIND_HPP_INCLUDED
|
#endif // #ifndef BOOST_MP11_BIND_HPP_INCLUDED
|
||||||
#ifndef BOOST_MP11_TUPLE_FOR_EACH_HPP_INCLUDED
|
#ifndef BOOST_MP11_TUPLE_HPP_INCLUDED
|
||||||
#define BOOST_MP11_TUPLE_FOR_EACH_HPP_INCLUDED
|
#define BOOST_MP11_TUPLE_HPP_INCLUDED
|
||||||
|
|
||||||
// Copyright 2015, 2017 Peter Dimov.
|
// Copyright 2015, 2017 Peter Dimov.
|
||||||
//
|
//
|
||||||
@@ -2675,6 +2675,7 @@ namespace boost
|
|||||||
namespace mp11
|
namespace mp11
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// tuple_for_each
|
||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -2704,6 +2705,6 @@ template<class Tp, class F> BOOST_CONSTEXPR F tuple_for_each( Tp && tp, F && f )
|
|||||||
} // namespace mp11
|
} // namespace mp11
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
#endif // #ifndef BOOST_TUPLE_FOR_EACH_HPP_INCLUDED
|
#endif // #ifndef BOOST_TUPLE_HPP_INCLUDED
|
||||||
|
|
||||||
#endif // #ifndef BOOST_MP11_HPP_INCLUDED
|
#endif // #ifndef BOOST_MP11_HPP_INCLUDED
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
// http://www.boost.org/LICENSE_1_0.txt
|
// 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 <boost/core/lightweight_test.hpp>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
// See accompanying file LICENSE_1_0.txt or copy at
|
// See accompanying file LICENSE_1_0.txt or copy at
|
||||||
// http://www.boost.org/LICENSE_1_0.txt
|
// http://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
#include <boost/mp11/tuple_for_each.hpp>
|
#include <boost/mp11/tuple.hpp>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
// Technically std::tuple isn't constexpr enabled in C++11, but it works with libstdc++
|
// Technically std::tuple isn't constexpr enabled in C++11, but it works with libstdc++
|
||||||
|
Reference in New Issue
Block a user