
21 Nov
2011
21 Nov
'11
7:19 p.m.
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.