+++
title = "`bool has_exception() const noexcept`"
description = "Returns true if an exception is present. Constexpr, never throws."
categories = ["observers"]
weight = 593
+++

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

*Requires*: Always available.

*Complexity*: Constant time.

*Guarantees*: Never throws an exception.
