...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 error code.
error_code error() const;
If *this
contains an error, retrieves it. Otherwise (if this->has_statement() || this->has_results()
), returns an empty (default-constructed)
error code.
No-throw guarantee.