[lic++][docs] Explain noexcept policy for narrow contracts.
Adds documentation around libc++'s policy to add noexcept to things that cannot throw but aren't marked as noexcept.
Refs LWG 3518 and D95251.
Differential Revision: https://reviews.llvm.org/D95821
GitOrigin-RevId: fab194898b5ed79d458813885af1187f57bb0a33
diff --git a/docs/DesignDocs/NoexceptPolicy.rst b/docs/DesignDocs/NoexceptPolicy.rst
new file mode 100644
index 0000000..8dc5e14
--- /dev/null
+++ b/docs/DesignDocs/NoexceptPolicy.rst
@@ -0,0 +1,13 @@
+====================
+``noexcept`` Policy
+====================
+
+Extended applications of ``noexcept``
+------------------------------------------
+
+As of version 13 libc++ may mark functions that do not throw (i.e.,
+"Throws: Nothing") as ``noexcept``. This has two primary consequences:
+first, functions might not report precondition violations by throwing.
+Second, user-provided functions, such as custom predicates or custom
+traits, which throw might not be propagated up to the caller (unless
+specified otherwise by the Standard).
diff --git a/docs/index.rst b/docs/index.rst
index c3bf8f8..7946ead 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -173,6 +173,7 @@
DesignDocs/FeatureTestMacros
DesignDocs/ExtendedCXX03Support
DesignDocs/UniquePtrTrivialAbi
+ DesignDocs/NoexceptPolicy
* `<atomic> design <http://libcxx.llvm.org/atomic_design.html>`_
* `<type_traits> design <http://libcxx.llvm.org/type_traits_design.html>`_