xref: /aosp_15_r20/external/cronet/third_party/libc++/src/docs/DesignDocs/NoexceptPolicy.rst (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1===================
2``noexcept`` Policy
3===================
4
5Extended applications of ``noexcept``
6-------------------------------------
7
8As of version 13 libc++ may mark functions that do not throw (i.e.,
9"Throws: Nothing") as ``noexcept``. This has two primary consequences:
10first, functions might not report precondition violations by throwing.
11Second, user-provided functions, such as custom predicates or custom
12traits, which throw might not be propagated up to the caller (unless
13specified otherwise by the Standard).
14