bool has_exception() const noexcept

Returns true if an exception is present. Constexpr where possible.

Requires: Always available.

Complexity: Constant time.

Guarantees: Never throws an exception.