P3739R0 — Standard Library Hardening - using std::optional
Jarrad J Waterloo
LWG
Revisions R1Jul 2025R0Jul 2025
Utilize `std::optional<T&>` <sup>[1]</sup> in `inplace_vector` <sup>[2]</sup> in order to harden it against null pointer dereference errors for similar memory safety reasons as `Standard Library Hardening` <sup>[3]</sup> and `Minor additions to C++26 standard library hardening` <sup>[4]</sup>.