We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a54d69 commit 5fb4d20Copy full SHA for 5fb4d20
source/memory.tex
@@ -2084,6 +2084,14 @@
2084
}
2085
\end{codeblock}
2086
2087
+\pnum
2088
+A program that instantiates the definition of \tcode{unique_ptr<T, D>}
2089
+is ill-formed if \tcode{T*} is an invalid type.
2090
+\begin{note}
2091
+This prevents the intantiation of specializations such as
2092
+\tcode{unique_ptr<T\&, D>} and \tcode{unique_ptr<int() const, D>}.
2093
+\end{note}
2094
+
2095
\pnum
2096
The default type for the template parameter \tcode{D} is
2097
\tcode{default_delete}. A client-supplied template argument
0 commit comments