aary / sharp

Some C++ libraries I implemented
15 stars 2 forks source link

[Optional] Write Optional type #3

Closed aary closed 7 years ago

aary commented 8 years ago

Provide an optional type with no overhead for the cases where the type stored is trivially constructible. This should strongly support invariants with respect to the data item stored.

aary commented 7 years ago

Closed this issue because the interface is not yet final, a space optimized optional might be awkward to use.