Boost logo

Boost :

Subject: Re: [boost] std::map::find() wrapper
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-05-05 05:00:17


On Thu, May 5, 2011 at 1:01 AM, Marsh Ray <marsh_at_[hidden]> wrote:
> Thus, it is better to use optional<T or &> instead of pointers whenever it
> supplies the required operations.

When auto is available, the disadvantage of boost::optional is minimal.
It's clear that some people really prefer boost::optional, so find_opt
or find_optional could be provided as well.

But again:
To what Boost lib could this be added? Utility?

Olaf


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