[Home]Variant

BOOST WIKI | RecentChanges | Preferences | Page List | Links List

Difference (from prior major revision) (no other diffs)

Added: 11a12,22



Here are some reference links to Andrei's writings on this subject:

*http://cuj.com/experts/2004/alexandr.htm
*http://cuj.com/experts/2006/alexandr.htm
*http://cuj.com/experts/2008/alexandr.htm

and older:

*http://www.oonumerics.org/tmpw01/alexandrescu.pdf

A Variant library would provide a class template that acts as a discriminated union. A discriminated union is like a C-style union in that it stores one value whose type may be one of several types listed when building the union. However, a discriminated union tracks which type of value it currently holds, and is therefore type safe (C-style unions are not type safe).

A Variant library should provide a variant class template with the following properties:


Here are some reference links to Andrei's writings on this subject:

and older:


BOOST WIKI | RecentChanges | Preferences | Page List | Links List
Edit text of this page | View other revisions
Last edited July 12, 2002 11:05 am (diff)
Search:
Disclaimer: This site not officially maintained by Boost Developers