C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Proposal for std::optional extensions

From: Bjorn Reese <breese_at_[hidden]>
Date: Mon, 10 Jun 2024 14:09:48 +0200
On 6/9/24 21:18, Giuseppe D'Angelo via Std-Proposals wrote:

>> 2. Add the ability to call a function to create a default value.
>
> https://github.com/cplusplus/papers/issues/921
>
> Was proposed as value_or_else.

This sounds like a use-case for the discussed std::elide.

Received on 2024-06-10 12:09:52