Implements parts of:
- P0898R3 Standard Library Concepts
- P1754 Rename concepts to standard_case for C++20, while we still can
Depends on D97162
Paths
| Differential D97359
[libcxx] adds concept std::movable ClosedPublic Authored by cjdb on Feb 23 2021, 11:06 PM.
Details
Summary Implements parts of:
Depends on D97162
Diff Detail
Event TimelineComment Actions I had a quick look, I'll have a closer look later.
Comment Actions Some small issues, but like to see the build pass before approving.
Comment Actions As usual, the code in <concepts> is "obviously correct" (and the tests are more verbose than I'd wish, but I don't intend to hold it up over that). LGTM%nits, if tests pass.
Comment Actions applies some of @Quuxplusone's feedback
cjdb marked 4 inline comments as done. Comment Actionsapplies @zoecarver's feedback on headers from D97443 This revision is now accepted and ready to land.Mar 11 2021, 11:19 AM Closed by commit rGdc9f38572224: [libcxx] adds concept std::movable (authored by cjdb). · Explain WhyMar 11 2021, 7:29 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 330129 libcxx/include/concepts
libcxx/test/std/concepts/lang/copyconstructible.compile.pass.cpp
libcxx/test/std/concepts/lang/moveconstructible.h
libcxx/test/std/concepts/lang/moveconstructible.compile.pass.cpp
libcxx/test/std/concepts/lang/swappable.h
libcxx/test/std/concepts/lang/swappable.pass.cpp
libcxx/test/std/concepts/lang/swappable_with.compile.pass.cpp
libcxx/test/std/concepts/object/movable.compile.pass.cpp
libcxx/test/support/type_classification/movable.h
libcxx/test/support/type_classification/moveconstructible.h
libcxx/test/support/type_classification/swappable.h
|
T -> _Tp