aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-tapi-diff
diff options
context:
space:
mode:
authoryronglin <yronglin777@gmail.com>2023-06-25 08:14:55 +0800
committeryronglin <yronglin777@gmail.com>2023-06-25 08:15:52 +0800
commit9f6439f1c5a3e98d03b7416449a256062e420003 (patch)
treee0c3a9241a0b3bdab6ca911d6b9869882c604a4e /llvm/tools/llvm-tapi-diff
parent75bd41f61d3247d4394ad0c46d23cc7c62261d63 (diff)
downloadllvm-9f6439f1c5a3e98d03b7416449a256062e420003.zip
llvm-9f6439f1c5a3e98d03b7416449a256062e420003.tar.gz
llvm-9f6439f1c5a3e98d03b7416449a256062e420003.tar.bz2
[libc++][ranges] Implement P2494R2 (Relaxing range adaptors to allow for move only types)
Implement P2494R2 `Relaxing range adaptors to allow for move only types` https://open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2494r2.html#wording-ftm According to the words in P2494R2, I haven't add new test for `drop_while_view`, `take_while_view` and `filter_view`, because these views has the requirement that the predicate is an `indirect_unary_predicate`, which requires that the predicate is `copy_constructible`, so they still can't accept move only types as predicate. ``` [P2483R0] also suggests future work to relax the requirements on the predicate types stored by standard views. This paper does not perform this relaxation, as the copy constructibility requirement is enshrined in the indirect callable concepts ([indirectcallable.indirectinvocable]). Thus, while this paper modifies the views that currently use copyable-box for user provided predicates, it only does so to apply the rename of the exposition-only type to movable-box; it does not change any of the constraints on those views. It does, however, relax the requirements on invocables accepted by the transform family of views, because those are not constrained using the indirect callable concepts. ``` Reviewed By: #libc, var-const Differential Revision: https://reviews.llvm.org/D151629
Diffstat (limited to 'llvm/tools/llvm-tapi-diff')
0 files changed, 0 insertions, 0 deletions