llvm-project/libcxx/test/std/utilities/variant
Marek Kurdej 0324b46cd8 [libc++] [C++2b] [P2162] Allow inheritance from std::variant.
This patch changes the variant even in pre-C++2b.
It should not break anything, only allow use cases that didn't work previously.

Notes:
 `__as_variant` is used in `__visitation::__variant::__visit_alt`, but I haven't used it in `__visitation::__variant::__visit_alt_at`.
That's because it is used only in `__visit_value_at`, which in turn is always used on variant specializations (that's in comparison operators).

* https://wg21.link/P2162

Reviewed By: ldionne, #libc, Quuxplusone

Differential Revision: https://reviews.llvm.org/D97394
2021-03-25 18:20:50 +01:00
..
variant.bad_variant_access [libc++] Remove shortcut Lit features for Apple backdeployment 2020-07-16 15:39:08 -04:00
variant.general Support tests in freestanding 2019-02-04 20:31:13 +00:00
variant.get [libc++] Remove shortcut Lit features for Apple backdeployment 2020-07-16 15:39:08 -04:00
variant.hash [libc++] Revert switch-based std::variant implementation again. 2020-11-17 23:09:31 -05:00
variant.helpers [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
variant.monostate [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
variant.monostate.relops [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
variant.relops [libc++] Revert switch-based std::variant implementation again. 2020-11-17 23:09:31 -05:00
variant.synopsis [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
variant.variant [libc++] Revert switch-based std::variant implementation again. 2020-11-17 23:09:31 -05:00
variant.visit [libc++] [C++2b] [P2162] Allow inheritance from std::variant. 2021-03-25 18:20:50 +01:00