C++ Logo

std-proposals

Advanced search

Re: [std-proposals] inplace_vector failable apis

From: Nikl Kelbon <kelbonage_at_[hidden]>
Date: Mon, 20 Nov 2023 11:05:56 +0400
Because pointer IS a optional reference by semantic

пн, 20 нояб. 2023 г. в 04:32, Magnus Fromreide via Std-Proposals <
std-proposals_at_[hidden]>:

> Hello!
>
> When I saw the failable API's the first question I asked myself was why you
> choose to use T* as return type rather than
> std::optional<std::reference_wrapper<T>> or possibly
> std::expected<std::reference_wrapper<T>, void>
>
> /MF
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2023-11-20 07:06:09