Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::variant construction,assignment
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-10-09 16:46:21


AMDG

peter_foelsche_at_[hidden] wrote:
> bool variant::empty() const;
>

Returns:
false: variant always contains exactly one of its bounded types. (See
the section called “"Never-Empty" Guarantee” for more information.)

Rationale:
Facilitates generic compatibility with boost::any.

Throws:
Will not throw.

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