C++ Logo


Advanced search

Re: Function proposal: generic value_or

From: Bjorn Reese <breese_at_[hidden]>
Date: Tue, 6 Jul 2021 15:19:31 +0200
On 7/4/21 9:32 PM, Roberto Romani via Std-Proposals wrote:

>     template<typename T, PointerTo<T>... Args>
>     constexpr decltype(auto) value_or(T&& default_value, Args&&...
> to_test_v) noexcept;

You may want to consider adding lazy evaluation of the default


Received on 2021-07-06 08:19:35