Boost logo

Boost :

From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2024-12-19 15:51:54


On Thu, Dec 19, 2024 at 7:30 AM Christian Mazakas via Boost <
boost_at_[hidden]> wrote:

> users.find(user_id).map([](auto& user) { user.status = deactivated;
> return user; });
>

    try_find( users, user_id ).map(
        [](auto& user)
        {
            user.status = deactivated;
            return user;
        });

Thanks


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk