C++ Logo

std-proposals

Advanced search

Re: [std-proposals] all bytes zero == null object

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Mon, 22 Jul 2024 20:34:05 +0300
On Mon, 22 Jul 2024 at 20:30, Ivan Lazaric via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> A good use case for such methods would be std::optional<T&>, if it is internally containing a T*, then nullptr can represent disengaged since a reference can't be nullptr

..which doesn't need any new such 'methods' to implement.

Received on 2024-07-22 17:34:20