Talk:cpp/named req/NullablePointer
From cppreference.com
This example (the class handle) does not actually satisfy the requirements, because its operations are not noexcept. — Preceding unsigned comment added by 95.37.240.10 (talk • contribs)
- They are not required to be formally noexcept. They just need to not throw. T. Canens (talk) 23:07, 22 May 2017 (PDT)
[edit] Missing requirement: swappable
According to [nullablepointer.requirements] (1.2) in both N4868 and N4910, for P to satisfy Cpp17NullablePointer, "lvalues of type P are swappable" must hold. However, this is not mentioned in this article. Should it be? EMBailey (talk) 19:10, 10 January 2023 (PST)
- ✔ Updated, thank you. --Space Mission (talk) 13:21, 11 January 2023 (PST)
- See also P2696R0 - "Introduce Cpp17Swappable as additional convenience requirements". --Space Mission (talk) 15:24, 11 January 2023 (PST)