Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-05-06 13:23:04


AMDG

Ovanes Markarian wrote:
> At least what I read here is following:
>
>
> The Guarantee
>
> All instances |v| of type |variant
> <http://www.boost.org/doc/libs/1_35_0/doc/html/boost/variant.html><T1,T2,...,TN>|
> guarantee that |v| has constructed content of !!!one!!! of the types
> |!!!T/i!!!/|, even if an operation on |v| has previously failed.
>
> For me it means that it can be T2 or TN as well.
>

If, variant could only hold the first type there would be no reason
to use it. The whole point of variant is that it can hold any of the
types in the list.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net