Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
value::as_double (2 of 2 overloads)

Return the underlying double, or throw an exception.

Synopsis
double
as_double() const;
Description

If is_double() is true, returns the underlying double, otherwise throws an exception.

Complexity

Constant.

Exception Safety

Strong guarantee.

Exceptions

Type

Thrown On

system_error

! this->is_double()


PrevUpHomeNext