C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Bool casting operator to check if a container not empty

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Thu, 2 Nov 2023 18:02:02 +0200
On Thu, 2 Nov 2023 at 17:59, Arthur O'Dwyer <arthur.j.odwyer_at_[hidden]> wrote:
> Furthermore, if `checked_process_it` really intends to deal with optionals, (smart) pointers, etc., then it is probably missing some code to unwrap the optional/pointer after checking it for engagement/non-nullness.

No, it probably isn't, because the process_it overloads can do that.

Received on 2023-11-02 16:02:15