/third_party/boost/libs/hof/test/ |
D | tuple_transform.cpp | 39 BOOST_HOF_STATIC_FUNCTION(tuple_transform) = tuple_transform_f{}; in BOOST_HOF_STATIC_FUNCTION() argument 52 auto r = tuple_transform(t, [](int i) { return i*i; }); in BOOST_HOF_TEST_CASE() 58 …TUPLE_TRANSFORM_STATIC_CHECK(tuple_transform(std::make_tuple(1, 2), boost::hof::_1 * boost::hof::_… in BOOST_HOF_TEST_CASE() 62 BOOST_HOF_TEST_CHECK(tuple_transform(x, boost::hof::identity) == x); \ 63 TUPLE_TRANSFORM_STATIC_CHECK(tuple_transform(x, boost::hof::identity) == x); 74 … auto x = tuple_transform(std::make_tuple(std::unique_ptr<int>(new int(3))), boost::hof::identity); in BOOST_HOF_TEST_CASE() 77 … BOOST_HOF_TEST_CHECK(tuple_transform(x, *boost::hof::_1) == tuple_transform(y, *boost::hof::_1)); in BOOST_HOF_TEST_CASE() 81 BOOST_HOF_TEST_CHECK(tuple_transform(x, boost::hof::compose(f, g)) == tuple_transform(tuple_transfo… 82 TUPLE_TRANSFORM_STATIC_CHECK(tuple_transform(x, boost::hof::compose(f, g)) == tuple_transform(tuple…
|
/third_party/boost/libs/mp11/test/ |
D | tuple_transform_2.cpp | 50 using boost::mp11::tuple_transform; in main() 55 std::tuple<int> r = tuple_transform( f, std::make_tuple( 1 ) ); in main() 61 std::tuple<int> r = tuple_transform( f, ::make_array( 1 ) ); in main() 67 std::tuple<int> r = tuple_transform( g, ::make_array( 1 ), std::make_tuple( 2 ) ); in main() 73 …std::tuple<int> r = tuple_transform( h, ::make_array( 1 ), std::make_tuple( 2 ), ::make_array( 3 )… in main() 81 std::tuple<int, int> r = tuple_transform( f, std::make_tuple( 1, 2 ) ); in main() 88 std::tuple<int, int> r = tuple_transform( f, std::make_pair( 1, 2 ) ); in main() 95 std::tuple<int, int> r = tuple_transform( f, ::make_array( 1, 2 ) ); in main() 102 std::tuple<int, int> r = tuple_transform( g, ::make_array( 1, 2 ), std::make_pair( 3, 4 ) ); in main() 109 …std::tuple<int, int> r = tuple_transform( h, ::make_array( 1, 2 ), std::make_pair( 3, 4 ), std::ma… in main() [all …]
|
D | tuple_transform.cpp | 41 using boost::mp11::tuple_transform; in main() 48 std::tuple<T<2>, T<3>, T<4>> s = tuple_transform( F{}, tp ); in main() 55 std::tuple<T<2>, T<3>, T<4>> s = tuple_transform( F{}, std::move(tp) ); in main() 62 std::tuple<T<5>, T<7>, T<9>> s = tuple_transform( F{}, tp, tp2 ); in main() 69 std::tuple<T<5>, T<7>, T<9>> s = tuple_transform( in main() 83 std::tuple<T<2>, T<3>, T<4>> s = tuple_transform( F{}, tp ); in main() 90 std::tuple<T<2>, T<3>, T<4>> s = tuple_transform( F{}, std::move(tp) ); in main() 97 std::tuple<T<5>, T<7>, T<9>> s = tuple_transform( F{}, tp, tp2 ); in main() 104 std::tuple<T<5>, T<7>, T<9>> s = tuple_transform( in main() 118 std::tuple<T<2>, T<3>> s = tuple_transform( F{}, tp ); in main() [all …]
|
D | tuple_transform_cx.cpp | 38 constexpr auto r = boost::mp11::tuple_transform( f, tp ); in main() 47 constexpr auto r = boost::mp11::tuple_transform( g, tp1, tp2 ); in main() 58 constexpr std::tuple<> r = boost::mp11::tuple_transform( f, tp ); in main()
|
D | Jamfile | 159 run tuple_transform.cpp ;
|
/third_party/boost/libs/hof/example/ |
D | sequence.cpp | 20 BOOST_HOF_STATIC_LAMBDA_FUNCTION(tuple_transform) = [](auto&& sequence, auto f) 41 return compose(tuple_join, tuple_transform)( in __anonfe6e5b820402() 55 auto&& functions = tuple_transform( in __anonfe6e5b820602() 84 auto r = tuple_transform(t, [](int i) { return i*i; }); in run_transform()
|
/third_party/boost/libs/mp11/doc/mp11/ |
D | tuple.adoc | 40 ## tuple_transform(f, tp...) 42 template<class F, class... Tp> constexpr /*...*/ tuple_transform(F const& f, Tp&&... tp); 44 `tuple_transform(f, tp...)` accepts a function object `f` followed by one or more tuples of equal l…
|
D | changelog.adoc | 16 * Added `tuple_transform` (contributed by Hans Dembinski)
|
/third_party/boost/boost/mp11/ |
D | tuple.hpp | 154 BOOST_MP11_CONSTEXPR auto tuple_transform( F const& f, Tp1&& tp1, Tp&&... tp ) in tuple_transform() function 166 BOOST_MP11_CONSTEXPR auto tuple_transform( F const& f, Tp&&... tp ) in tuple_transform() function
|