Boost logo

Boost :

Subject: Re: [boost] [optional] operator<(optional<T>, T) -- is it wrong?
From: David Stone (david_at_[hidden])
Date: 2014-11-27 09:14:37


On Wed, Nov 26, 2014 at 4:49 PM, Gavin Lambert <gavinl_at_[hidden]>
wrote:

> But why do you want to have optional keys anyway? When does it make sense
> to have a single value attached to an empty key? It's rare for a
> dictionary type to permit null keys in any language.
>

I think this is a good point. Has anyone reading this list every actually
used std::map<boost::optional<T>, U>?


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