llvm-project/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor
Christopher Di Bella 546449938a [libcxx][optional] adds missing constexpr operations
Makes the following operations constexpr:
  * `std::swap(optional, optional)`
  * `optional(optional<U> const&)`
  * `optional(optional<U>&&)`
  * `~optional()`
  * `operator=(nullopt_t)`
  * `operator=(U&&)`
  * `operator=(optional<U> const&)`
  * `operator=(optional<U>&&)`
  * `emplace(Args&&...)`
  * `emplace(initializer_list<U>, Args&&...)`
  * `swap(optional&)`
  * `reset()`

P2231 has been accepted by plenary, with the committee recommending
implementers retroactively apply to C++20. It's necessary for us to
implement _`semiregular-box`_ and _`non-propagating-cache`_, both of
which are required for ranges (otherwise we'll need to reimplement
`std::optional` with these members `constexpr`ified).

Differential Revision: https://reviews.llvm.org/D102119
2021-06-10 05:52:47 +00:00
..
U.pass.cpp [libc++] Move handling of the target triple to the DSL 2021-05-08 11:10:53 -04:00
const_T.pass.cpp [libc++] Move handling of the target triple to the DSL 2021-05-08 11:10:53 -04:00
const_optional_U.pass.cpp [libcxx][optional] adds missing constexpr operations 2021-06-10 05:52:47 +00:00
copy.pass.cpp
ctor.fail.cpp
deduct.fail.cpp
deduct.pass.cpp
default.pass.cpp
empty_in_place_t_does_not_clobber.pass.cpp
explicit_const_optional_U.pass.cpp [libcxx][optional] adds missing constexpr operations 2021-06-10 05:52:47 +00:00
explicit_optional_U.pass.cpp [libcxx][optional] adds missing constexpr operations 2021-06-10 05:52:47 +00:00
in_place_t.pass.cpp
initializer_list.pass.cpp
move.fail.cpp [libcxx][optional] adds missing constexpr operations 2021-06-10 05:52:47 +00:00
move.pass.cpp [libc++] Move handling of the target triple to the DSL 2021-05-08 11:10:53 -04:00
nullopt_t.pass.cpp
optional_U.pass.cpp [libcxx][optional] adds missing constexpr operations 2021-06-10 05:52:47 +00:00
rvalue_T.pass.cpp [libc++] Move handling of the target triple to the DSL 2021-05-08 11:10:53 -04:00