Subject: Re: [boost] [optional] std::tr2::optional
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2011-11-21 14:19:12
On Monday, November 21, 2011 19:36:20 Sebastian Redl wrote:
> > I managed to come up with the following interface for initializing and
> > un-initializing.
> > My goal was also to not introduce in-place factories.
> Initialize sounds slightly wrong.
> I like the notion of optional as something like a single-element container,
> which would lead to the names emplace() for in-place construction, clear()
> for resetting to the none-state, and empty() as the test function. (Maybe
> with a positive filled() too.)
+1. I like emplace very much.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk