[Home]Variant

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

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