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