Skip to content

Commit 9b2828e

Browse files
committed
address feedback
1 parent d75c21f commit 9b2828e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

libcxx/docs/ReleaseNotes/19.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Implemented Papers
4444
- P2495R3 - Interfacing ``stringstream``s with ``string_view``
4545
- P2302R4 - ``std::ranges::contains``
4646
- P1659R3 - ``std::ranges::starts_with`` and ``std::ranges::ends_with``
47+
- P2231R1 - Missing ``constexpr`` in ``std::optional`` and ``std::variant``
48+
4749

4850
Improvements and New Features
4951
-----------------------------

libcxx/include/variant

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,28 @@ namespace std {
4242
in_place_index_t<I>, initializer_list<U>, Args&&...);
4343
4444
// 20.7.2.2, destructor
45-
constexpr ~variant(); // constexpr since c++20
45+
constexpr ~variant(); // constexpr since c++20
4646
4747
// 20.7.2.3, assignment
4848
constexpr variant& operator=(const variant&);
4949
constexpr variant& operator=(variant&&) noexcept(see below);
5050
5151
template <class T>
52-
constexpr variant& operator=(T&&) noexcept(see below); // constexpr since c++20
52+
constexpr variant& operator=(T&&) noexcept(see below); // constexpr since c++20
5353
5454
// 20.7.2.4, modifiers
5555
template <class T, class... Args>
56-
constexpr T& emplace(Args&&...); // constexpr since c++20
56+
constexpr T& emplace(Args&&...); // constexpr since c++20
5757
5858
template <class T, class U, class... Args>
59-
constexpr T& emplace(initializer_list<U>, Args&&...); // constexpr since c++20
59+
constexpr T& emplace(initializer_list<U>, Args&&...); // constexpr since c++20
6060
6161
template <size_t I, class... Args>
6262
constexpr variant_alternative_t<I, variant>& emplace(Args&&...); // constexpr since c++20
6363
6464
template <size_t I, class U, class... Args>
65-
constexpr variant_alternative_t<I, variant>& emplace(initializer_list<U>, Args&&...); // constexpr since c++20
65+
constexpr variant_alternative_t<I, variant>&
66+
emplace(initializer_list<U>, Args&&...); // constexpr since c++20
6667
6768
// 20.7.2.5, value status
6869
constexpr bool valueless_by_exception() const noexcept;

0 commit comments

Comments
 (0)