-
Notifications
You must be signed in to change notification settings - Fork 118
Prototype __tuple_for_each and __tuple_apply for zip_view #2613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kboyarinov
wants to merge
218
commits into
main
Choose a base branch
from
dev/kboyarinov/zip_view_apply_to_tuple
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 217 commits
Commits
Show all changes
218 commits
Select commit
Hold shift + click to select a range
53944ea
[oneDPL][ranges][zip_view] + initial implementation of standard compl…
MikeDvorskiy dd621de
[oneDPL][ranges][zip_view] + missing arithmetic operations for zip_vi…
MikeDvorskiy 070b844
[oneDPL][ranges][zip_view] + return type fix for operator*()
MikeDvorskiy 51c5c2e
[oneDPL][ranges][tuple] + const assignment operator overload
MikeDvorskiy f170639
[oneDPL][ranges][zip_view] + test
MikeDvorskiy 0970552
[oneDPL][ranges][zip_view] + apply_to_tuple instead of std::apply; st…
MikeDvorskiy 996828c
[oneDPL][ranges][zip_view] + changes in the test
MikeDvorskiy 212324b
[oneDPL][ranges][zip_view] -> oneapi::dpl::ranges
MikeDvorskiy dba1b44
[oneDPL][ranges][zip_view][test] -> oneapi::dpl::ranges
MikeDvorskiy 506ad9e
[oneDPL][ranges][zip_view] + file header and guards
MikeDvorskiy 2643c63
[oneDPL][ranges][zip_view] + apply_to_tuple instead of std::apply; st…
MikeDvorskiy 036c1c6
[oneDPL][ranges][zip_view] + begin_imp, end_impl to reduce code dupli…
MikeDvorskiy 452ae82
Revert "[oneDPL][ranges][zip_view] + begin_imp, end_impl to reduce co…
MikeDvorskiy 853c2f0
[oneDPL][ranges][zip_view][test] + minor changes
MikeDvorskiy cd5606e
[oneDPL][ranges][zip_view] + minor changes
MikeDvorskiy 530adbd
[oneDPL][ranges][zip_view] + #include "tuple_impl.h"
MikeDvorskiy e50cb9e
[oneDPL][ranges][zip_view][test] + test_zip_view_base_op()
MikeDvorskiy b8fe83e
[oneDPL][ranges][zip_view] + implementation fix for 'operator-' betwe…
MikeDvorskiy a55791c
Update include/oneapi/dpl/pstl/zip_view_impl.h
MikeDvorskiy a5e698c
Update include/oneapi/dpl/pstl/zip_view_impl.h
MikeDvorskiy 5d26c97
Update include/oneapi/dpl/pstl/zip_view_impl.h
MikeDvorskiy 041192a
Update include/oneapi/dpl/pstl/zip_view_impl.h
MikeDvorskiy f72be27
Update include/oneapi/dpl/pstl/zip_view_impl.h
MikeDvorskiy f36e469
Update include/oneapi/dpl/pstl/zip_view_impl.h
MikeDvorskiy 2d96a41
Update include/oneapi/dpl/pstl/zip_view_impl.h
MikeDvorskiy c964bc2
Update include/oneapi/dpl/pstl/zip_view_impl.h
MikeDvorskiy d4cb936
Update include/oneapi/dpl/pstl/zip_view_impl.h
MikeDvorskiy c62597b
[oneDPL][ranges][zip_view] + std::get usage
MikeDvorskiy 873e8b8
[oneDPL][ranges][zip_view] + 'std::forward<decltype(__args)>(__args)'…
MikeDvorskiy b1cceb5
[oneDPL][ranges][zip_view] + 'minor change' for const/non const type …
MikeDvorskiy e12c67b
[oneDPL][ranges][zip_view] + fix operator<=> implementation
MikeDvorskiy 6e5e414
[oneDPL][ranges][zip_view][test] removed cbegin(), cend() test cases …
MikeDvorskiy c23deac
[oneDPL][ranges][zip_view][test] + front(), back() methods check
MikeDvorskiy 732fc55
[oneDPL][ranges][zip_view][test] + empty constructor call check
MikeDvorskiy 839b2cf
[oneDPL][ranges][zip_view][test] + ;
MikeDvorskiy 70b43b6
[oneDPL][ranges][zip_view][test] const for compare_with_sentinels
MikeDvorskiy bb15590
[oneDPL][ranges][zip_view][test] a fix for zip_view::iterator::operator-
MikeDvorskiy 298af5a
[oneDPL][rfc][zip_view] + std::ranges::range_reference_t usage; it f…
MikeDvorskiy dd627f5
[oneDPL][ranges][zip_view][test] + minor changes
MikeDvorskiy 539aae2
[oneDPL][zip_view] + minor improvements
MikeDvorskiy a8b7207
[oneDPL][ranges][zip_view][test] + EXPECT_TRUE usage
MikeDvorskiy 793b1a3
[oneDPL][ranges][zip_view] + operator oneapi::dpl::zip_iterator<Itera…
MikeDvorskiy 7a68921
[oneDPL][ranges][zip_view][test] + check conversion to oneapi::dpl::z…
MikeDvorskiy 3b934c3
[oneDPL][ranges][zip_view][test] + EXPECT_TRUE usage
MikeDvorskiy 93ea41b
[oneDPL][ranges][zip_view] + clang format
MikeDvorskiy a529582
[oneDPL][ranges][zip_view][test] + result checks
MikeDvorskiy 47a7a73
[oneDPL][ranges][zip_view] + LLVM tests for ranges::zip_view (from C+…
MikeDvorskiy 7c2d0a2
[oneDPL][ranges][zip_view] + __simple_view_concep. a fix for operator==
MikeDvorskiy e51cf7d
[oneDPL][ranges][zip_view][test] LLVM test begin.pass adaptation for …
MikeDvorskiy 52f2119
[oneDPL][ranges][zip_view] + fix for end() and compare_equal
MikeDvorskiy 4360039
[oneDPL][ranges][zip_view][test] LLVM test end.pass adaptation for on…
MikeDvorskiy 117859f
[oneDPL][ranges][zip_view] + fix an error in zip_fn
MikeDvorskiy b5d604c
[oneDPL][ranges][zip_view][test] LLVM test cpo.pass adaptation for on…
MikeDvorskiy 5f9c575
[oneDPL][ranges][zip_view] + implementation fixes
MikeDvorskiy 4796307
[oneDPL][ranges][zip_view][test] LLVM test borrowing.compile.pass ada…
MikeDvorskiy 2c022e6
[oneDPL][ranges][zip_view] + explicit for constructor
MikeDvorskiy 8514ddf
[oneDPL][ranges][zip_view][test] LLVM test сtad.compile.pass adaptati…
MikeDvorskiy 795325f
[oneDPL][ranges][zip_view][test] LLVM test сtor.default.pass adaptati…
MikeDvorskiy ba743ce
[oneDPL][ranges][zip_view][test] LLVM test general.pass and ctor.view…
MikeDvorskiy ac2029e
[oneDPL][ranges][zip_view] + correct implementation of method 'size()…
MikeDvorskiy b72d34a
[oneDPL][ranges][zip_view][test] another couple of LLVM tests adapta…
MikeDvorskiy cec5084
[oneDPL][ranges][zip_view] + arithmetic operation fixes
MikeDvorskiy 3d80753
[oneDPL][ranges][zip_view][test] LLVM test arithmetict.pass adaptatio…
MikeDvorskiy 2ae432d
[oneDPL][ranges][zip_view] + fixes in private zip_view::iterator cons…
MikeDvorskiy 81eb9a1
[oneDPL][ranges][zip_view][test] compare.pass test adaptation for oneDPL
MikeDvorskiy bfc1779
[oneDPL][ranges][zip_view] + fixes in apply_to_tuple using
MikeDvorskiy 5583916
[oneDPL][ranges][zip_view][test] another LLVM test portion were adopt…
MikeDvorskiy 51e8606
[oneDPL][ranges][zip_view] + iter_move friend method
MikeDvorskiy 19f1aac
[oneDPL][ranges][zip_view][test] another couple of LLVM tests adapta…
MikeDvorskiy e53952f
[oneDPL][ranges][zip_view] + iter_swap friend method
MikeDvorskiy d4d12c3
[oneDPL][ranges][zip_view][test] LLVM test iter_swap.pass adaptation …
MikeDvorskiy c831ad5
[oneDPL][ranges][zip_view] + fix: public inheritance for class iterat…
MikeDvorskiy 555e1ff
[oneDPL][ranges][zip_view][test] another LLVM test adaptation for on…
MikeDvorskiy 9b2b5e7
[oneDPL][ranges][zip_view][test] another couple of LLVM tests adapta…
MikeDvorskiy 47e3f58
[oneDPL][ranges][zip_view][test] + test cases disabling #if __GNUC__ …
MikeDvorskiy 66f583d
[oneDPL][ranges][tuple] + a fix for default. According to std::tuple:…
MikeDvorskiy acba4e3
[oneDPL][ranges][zip_view] + a fix: __maybe_const usage.
MikeDvorskiy 8e023f2
[oneDPL][ranges][zip_view][test] another LLVM tests adaptation for o…
MikeDvorskiy e344bce
[oneDPL][ranges][zip_view][test] minor changes for begin.pass test
MikeDvorskiy 1032847
[oneDPL][ranges][zip_view][test] the tests renamed: + prefix "zip_view."
MikeDvorskiy 939c6fa
[oneDPL] a fixe for __pattern_walk2 implementation in case of forward…
MikeDvorskiy d88a100
[oneDPL][ranges][zip_view] removed spaces
MikeDvorskiy 94dcd28
[oneDPL][ranges][zip_view][test] additional LLVM tests adaptation for…
MikeDvorskiy d90fd15
[oneDPL][ranges][tuple] + a fix for Value-initializes all elements of…
MikeDvorskiy 52bf699
[oneDPL][ranges][zip_view][test] + #include "support/test_config.h"
MikeDvorskiy 646e5bb
[oneDPL][ranges][tuple] + a fix for the internal tuple default constr…
MikeDvorskiy e1c37b1
[oneDPL][ranges][zip_view] + namespace views = ranges::views;
MikeDvorskiy a31a933
[oneDPL][ranges][zip_view][test] removed unused code
MikeDvorskiy a318685
[oneDPL][ranges][zip_view] + fix: std::ranges::enable_borrowed_range …
MikeDvorskiy 7b431f4
[oneDPL][ranges][zip_view][test] + include
MikeDvorskiy 8d3a006
[oneDPL][ranges][zip_view] + fix: using ranges::views::zip; in dpl::v…
MikeDvorskiy 16f6aaa
[oneDPL][ranges][zip_view] + fixes
MikeDvorskiy 713b2d1
[oneDPL][ranges][zip_view] + fixes
MikeDvorskiy 6f469e3
[oneDPL][ranges][zip_view] + a fix for iterator private constructor
MikeDvorskiy 8c87471
[oneDPL][ranges][zip_view][test] + name space fix
MikeDvorskiy c06109a
[oneDPL][tuple] + a comment default constructor
MikeDvorskiy 1c19f76
[oneDPL][ranges][zip_view][test] removed // UNSUPPORTED: c++03, c++11…
MikeDvorskiy 52c1be3
Apply suggestions from code review
MikeDvorskiy f1986e9
[oneDPL][ranges][zip_view][test] header changed
MikeDvorskiy 378c798
[oneDPL][ranges][zip_view] removed the commented code
MikeDvorskiy c38298a
Apply suggestions from code review
MikeDvorskiy e7adc47
Apply suggestions from code review
MikeDvorskiy c469760
[oneDPL][ranges][zip_view] + difference_type alias usage
MikeDvorskiy 289e8b7
Revert "[oneDPL][ranges][zip_view] + difference_type alias usage"
MikeDvorskiy ac25547
[oneDPL][ranges][zip_view] + difference_type alias usage for iterator
MikeDvorskiy 83d50ef
[oneDPL][ranges][zip_view] + difference_type alias usage for sentinel
MikeDvorskiy 96c3ee4
[oneDPL][ranges][zip_view] operator- code re-factored.
MikeDvorskiy 21ad5a8
[oneDPL][ranges][zip_view] uglification, part1
MikeDvorskiy 32b5ee3
[oneDPL][ranges][zip_view] __apply_to_tuple stuff refactoring
MikeDvorskiy adb8a0e
[oneDPL][ranges][zip_view] uglification, part2
MikeDvorskiy 1630d52
[oneDPL][ranges][zip_view] moved the internal utility to namespace __…
MikeDvorskiy adbc836
[oneDPL][ranges][zip_view] + clang format
MikeDvorskiy 70126d2
Revert "[oneDPL][ranges][zip_view] + clang format"
MikeDvorskiy ee796a6
[oneDPL][ranges][zip_view][tests] + removed unused code.
MikeDvorskiy 815378a
[oneDPL][ranges][zip_view][tests] + test cases with zip_view (and dpc…
MikeDvorskiy 5a0cce2
[oneDPL][ranges][zip_view] iterator_type -> iterators_type
MikeDvorskiy a4fe06e
[oneDPL][tuple] + clang format
MikeDvorskiy ffe99b7
[oneDPL][ranges][zip_view] + clang format
MikeDvorskiy 7f9f56b
[oneDPL][ranges][zip_view][test] + a test case for a device policy
MikeDvorskiy 1276333
[oneDPL][ranges][zip_view][test] + sharing alias typel_type for sever…
MikeDvorskiy 71b8c91
Revert "[oneDPL][ranges][zip_view][test] + sharing alias typel_type f…
MikeDvorskiy 6b49fc7
[oneDPL][ranges][zip_view] + fix "return" for __apply_to_tuples
MikeDvorskiy 4ccc238
Update include/oneapi/dpl/pstl/zip_view_impl.h
MikeDvorskiy 8485eff
Update include/oneapi/dpl/pstl/zip_view_impl.h
MikeDvorskiy d1c8386
[oneDPL][ranges][zip_view] + alias __iterators_type unification
MikeDvorskiy c9e5b94
Revert "[oneDPL][ranges][zip_view] + alias __iterators_type unification"
MikeDvorskiy 69a4973
[oneDPL][ranges][zip_view] + check trivially copyability
MikeDvorskiy a3d1beb
[onedpl][ranges][tests] + fixes in test_dangling_pointers_arg_<x> fun…
MikeDvorskiy b3dd586
[onedpl][ranges][tests] removed unused type
MikeDvorskiy 318e705
[onedpl][ranges][zip_view] changed __gen_lambda lambda by a structure…
MikeDvorskiy eb953d1
[onedpl][tests] removed redundant ;
MikeDvorskiy 8289152
[onedpl][tests] removed unused variable and type
MikeDvorskiy 3384d78
[onedpl][tests] the code re-factored: Checking the dangling iterators…
MikeDvorskiy fe831e1
[onedpl][tests] + [[maybe_unused]]
MikeDvorskiy a7eabf9
[onedpl][tests][zip_view] + assert
MikeDvorskiy 9689939
[onedpl][tests][zip_view] suppressed Warray-bounds, because it is a f…
MikeDvorskiy b564767
[onedpl][tests] removed unused type
MikeDvorskiy 3216f7c
[onedpl][tests][zip_view] "unreachable code" warning suppressed (relv…
MikeDvorskiy c459337
[onedpl][ranges][zip_view] + fix an access mode in zip_view class (fo…
MikeDvorskiy f5460bc
[onedpl][tests][zip_view] renamed a variable because a warning (windo…
MikeDvorskiy fa44a64
[onedpl][tests][zip_view] a call dpl_ranges::stable_sort with DPCPP …
MikeDvorskiy 6891b13
[onedpl][tests][zip_view][ci] -ftemplate-backtrace-limit=0
MikeDvorskiy f1d1406
[onedpl][tests][zip_view][ci] removed "-ftemplate-backtrace-limit=0",…
MikeDvorskiy ac196bb
[onedpl][tests][zip_view] + #define _USE_STD_VECTOR_ALGORITHMS 0
MikeDvorskiy af41cbf
[onedpl][tests][zip_view] @ #define _USE_STD_VECTOR_ALGORITHMS 0
MikeDvorskiy 1d13b75
[onedpl][zip_view] + friend class iterator<!_Const>; (_MSC_VER)
MikeDvorskiy af9a4d8
[onedpl][zip_view] C++ access mode fixes
MikeDvorskiy 403bcb8
[onedpl][zip_view] C++ access mode changes
MikeDvorskiy ed79b70
[onedpl][zip_view] C++ access mode changes 2
MikeDvorskiy 71980b4
[onedpl][zip_view][tests] static_assert(std::ranges::common_range<Vi…
MikeDvorskiy 10a16e9
[onedpl][zip_view][tuple] tuple& => const tuple& in operator=(const t…
MikeDvorskiy 2762f68
[onedpl][zip_view][tests] #define _USE_STD_VECTOR_ALGORITHMS 0
MikeDvorskiy 603ebd2
Update include/oneapi/dpl/pstl/algorithm_impl.h
MikeDvorskiy 5c69b47
Update test/parallel_api/ranges/range.zip/sentinel/zip_view.minus.pas…
MikeDvorskiy 2e47ba1
[onedpl][zip_view][tests] + typo fix
MikeDvorskiy babebe5
[onedpl][zip_view][tests] + a typo fix
MikeDvorskiy ca17932
[onedpl][zip_view] removed unnecessary #include <vector>
MikeDvorskiy a29971c
[onedpl][zip_view] + #include <cstdlib> because std::abs is used in …
MikeDvorskiy e4e2dac
+fix re-basing artefacts
MikeDvorskiy 27ceaba
[onedpl][zip_view] moved one::dpl::ranges::zip_view to one::dpl::exp…
MikeDvorskiy 8a18dc4
[onedpl][zip_view] fixing "one::dpl::ranges::zip_view to one::dpl::e…
MikeDvorskiy b0fd57d
[onedpl][zip_view] fixing namespace error
MikeDvorskiy 88cb4c3
[onedpl][zip_view] fixing a namespace error
MikeDvorskiy 205bace
[onedpl][zip_view] + a minor fix
MikeDvorskiy ab22cd2
[onedpl][zip_view] + #define _USE_STD_VECTOR_ALGORITHMS 0
MikeDvorskiy f09d0c3
[onedpl][zip_view][test] + a minor scope resolution fix
MikeDvorskiy 7c375cb
[onedpl][zip_view] trying moving some internal methods to a private s…
MikeDvorskiy e6179ac
[onedpl][zip_view] + clang format
MikeDvorskiy f9e5786
[onedpl][zip_view] + clang format, change in a comment
MikeDvorskiy 550b6ca
[onedpl][ranges][zip_view] removed static for __apply_to_tuple_impl
MikeDvorskiy 31cec14
[onedpl][ranges][zip_view] access modes: a workaround for CL compiler
MikeDvorskiy adb0bb7
[onedpl][zip_view] + clang format
MikeDvorskiy f58e343
[onedpl][ranges][zip_view] a comment
MikeDvorskiy 93b24ea
[onedpl][ranges][zip_view] + base() method
MikeDvorskiy 623eb99
[onedpl][zip_view] + clang format
MikeDvorskiy 09643ac
Revert "[onedpl][zip_view] + clang format"
MikeDvorskiy 1843b74
Removed commit artifacts (build files)
MikeDvorskiy 026e3e4
Reverted "clang format changes" for this file.
MikeDvorskiy d6060f7
[onedpl][zip_view] EOL => LF
MikeDvorskiy cc6dd7d
[onedpl][ranges][zip_view] a minor change in __apply_to_tuple(..)
MikeDvorskiy aaab7b0
[onedpl][ranges][zip_view] + std::forward<decltype(__args)>(__args)...
MikeDvorskiy 69dd42b
[onedpl][ranges][zip_view] + const _Views within "end() const" version
MikeDvorskiy 3827918
[onedpl][ranges][zip_view] + __compare_equal(const iterator& __y
MikeDvorskiy b448cd1
[onedpl][ranges][zip_view][test] + minor fixes
MikeDvorskiy bc25a16
[onedpl][ranges][zip_view][test] + aliases for input and output itera…
MikeDvorskiy c90db99
[onedpl][ranges][zip_view][test] + an artifact removed
MikeDvorskiy 009a1d2
Update include/oneapi/dpl/pstl/ranges_defs.h
MikeDvorskiy be91dc0
[onedpl][ranges][zip_view][test] removed the duplicated macro TEST_CO…
MikeDvorskiy 43c0e63
[onedpl][ranges][zip_view][test] #if TEST_STD_VER < 17 => #if TEST_S…
MikeDvorskiy 6c8ec0b
[onedpl][ranges][zip_view] arranged "struct zip_fn" according to std:…
MikeDvorskiy 04eea66
[onedpl][ranges][zip_view][test] + test_iterators_cpp17.h, keeping te…
MikeDvorskiy 767b1ec
[onedpl][ranges][zip_view][test] #include "support/test_iterators.h" …
MikeDvorskiy 677da4a
[onedpl][ranges][zip_view] a fix: + const version of operator= for s…
MikeDvorskiy 20109d0
[onedpl][ranges][zip_view][test] + checking const assignment operator
MikeDvorskiy f7c1cb7
Update include/oneapi/dpl/pstl/zip_view_impl.h
MikeDvorskiy f9bfe6e
[onedpl][ranges][zip_view][test] + _ONEDPL_CPP20_OWNING_VIEW_PRESENT;…
MikeDvorskiy e16c6d7
[onedpl][ranges][zip_view][test] + _ONEDPL_CPP20_IN_OUT_ITERATOR_BROKEN
MikeDvorskiy c36ba42
Update test_iterators_cpp17.h - fix a typo
MikeDvorskiy bf08c15
[onedpl][zip_view] Uglification the uniglified names in zip_view_impl.h
MikeDvorskiy f7d37c2
[onedpl][zip_view] "<class' -> "<typename"
MikeDvorskiy 86a2399
Update include/oneapi/dpl/pstl/tuple_impl.h
MikeDvorskiy cb70fce
Update zip_view_impl.h
MikeDvorskiy 8827f93
fix floating point zip_view test issues (#2608)
danhoeflinger 43b4ebf
[oneDPL][zip_view] +fixes in "zip_view::end" methods
MikeDvorskiy ddb3ec1
Update include/oneapi/dpl/pstl/zip_view_impl.h
MikeDvorskiy 905148d
Update zip_view_impl.h
MikeDvorskiy cadfca4
Update zip_view_impl.h
MikeDvorskiy 14faf74
Update zip_view_impl.h
MikeDvorskiy 680564f
Update zip_view_impl.h
MikeDvorskiy a9c5288
Update zip_view_impl.h
MikeDvorskiy 3de181a
Update zip_view_impl.h
MikeDvorskiy 789f1d7
Prototype __tuple_apply
kboyarinov 546b2f3
Fix typo
kboyarinov 1d4c9ed
__tuples_apply -> __tuples_for_each
kboyarinov 04b1e78
Merge remote-tracking branch 'origin/main' into dev/kboyarinov/zip_vi…
kboyarinov 2754e5f
Fix compilation
kboyarinov 741eed5
Make clang_format happy
kboyarinov fcffd26
Rework __tuple_apply overload
kboyarinov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this overload is confusing. It names the "adaptor" function applied to all elements of the tuple as
__fwhich is the name used in the nearby context for the function applied to each element of the tuple. It also only serves one caller (creation of zip_iterator). Either we should just pass the identity in as the per element function and get rid of this overload, or it should be named better to differentiate it from the rest of the context.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, this function is a direct analogue of
std::apply. I agree that renaming_Fto_Adaptormakes sense to align with the second overload.We could also use a single
__tuple_apply_implwith two functions and pass an identity lambda from __tuple_apply, if that makes the intent clearer from your point of view.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed _F to _Adaptor and reused another overload with identity lambda in __tuple_apply with 2 arguments