Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
stage_response::as_results (1 of 2 overloads)

Retrieves the contained results or throws an exception.

Synopsis
const results&
as_results() const;
Description

If *this contains a results object (this->has_results() == true), retrieves a reference to it. Otherwise, throws an exception.

Exception safety

Strong guarantee. Throws on invalid input.

Exceptions

Type

Thrown On

std::invalid_argument

If this->has_results() == false

Object lifetimes

The returned reference is valid as long as *this is alive and hasn't been assigned to.


PrevUpHomeNext