Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Retrieves the contained results or throws an exception.
results&&
as_results() &&;
If *this
contains a results object
(this->has_results()
== true),
retrieves a reference to it. Otherwise, throws an exception.
Strong guarantee. Throws on invalid input.
|
Type |
Thrown On |
|---|---|
|
|
If |
The returned reference is valid as long as *this is alive and hasn't been assigned
to.