| Home | Libraries | People | FAQ | More

###### stage_response::as_results (2 of 2 overloads)

Retrieves the contained results or throws an exception.

###### Synopsis

    results&&
    as_results() &&;

###### 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.