Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2005-07-09 21:57:59


On Sat, 9 Jul 2005 18:50:30 -0700, Jost, Andrew wrote
> This is my first post to the Boost distribution list, so please feel
> free to speak up if you find any part of this message to be outside the
> normal decorum.
>
> I am curious if there is support for what I'm calling a "dual_state"
> template class. Anyone familiar with Perl will instantly recognize the
> parallel. The idea is to attach a "statedness" value to arbitrary
> objects, allowing us to consider them defined or undefined.

I believe you are looking for boost.optional

http://www.boost.org/libs/optional/doc/optional.html

Jeff


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