File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change 2145
2145
of a prospective destructor declaration (if any)
2146
2146
shall be \tcode {friend}, \tcode {inline}, or \tcode {virtual}.
2147
2147
2148
+ \pnum
2149
+ \indextext {generated destructor|see{destructor, default}}%
2150
+ \indextext {destructor!default}%
2151
+ If a class has no user-declared
2152
+ prospective destructor,
2153
+ a prospective destructor is implicitly
2154
+ declared as defaulted\iref {dcl.fct.def }.
2155
+ An implicitly-declared prospective destructor is an
2156
+ inline public member of its class.
2157
+
2158
+ \pnum
2159
+ An implicitly-declared prospective destructor for a class \tcode {X} will have the form
2160
+ \begin {codeblock }
2161
+ ~X()
2162
+ \end {codeblock }
2163
+
2148
2164
\pnum
2149
2165
At the end of the definition of a class,
2150
2166
overload resolution is performed
2185
2201
has the same exception specification as if it had been implicitly declared\iref {except.spec }.
2186
2202
\end {note }
2187
2203
2188
- \pnum
2189
- \indextext {generated destructor|see{destructor, default}}%
2190
- \indextext {destructor!default}%
2191
- If a class has no user-declared
2192
- prospective destructor,
2193
- a prospective destructor is implicitly
2194
- declared as defaulted\iref {dcl.fct.def }.
2195
- An implicitly-declared prospective destructor is an
2196
- inline public member of its class.
2197
-
2198
- \pnum
2199
- An implicitly-declared prospective destructor for a class \tcode {X} will have the form
2200
- \begin {codeblock }
2201
- ~X()
2202
- \end {codeblock }
2203
-
2204
2204
\pnum
2205
2205
A defaulted destructor for a class
2206
2206
\tcode {X} is defined as deleted if:
You can’t perform that action at this time.
0 commit comments