Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
value::as_array (2 of 2 overloads)

Return a reference to the underlying array, or throw an exception.

Synopsis
array const&
as_array() const;
Description

If is_array() is true, returns a reference to the underlying array, otherwise throws an exception.

Complexity

Constant.

Exception Safety

Strong guarantee.

Exceptions

Type

Thrown On

std::invalid_argument

! this->is_array()


PrevUpHomeNext