Does the standard contain terminology for describing both a constructor
and a destructor
?
Is there a technical term or phrase that can encompass the two, but exclude all other kinds of methods?
"Lifetime" methods?
I've seen constructors called "ctors"
and destructors called "dtors"
but I've never seen "tors"
used to describe both. Does such a phrase exist?
I think the closest you are going to get is special member function but this also includes copy/move constructor and assignment , section 12
[special] says:
The default constructor (12.1), copy constructor and copy assignment operator (12.8), move constructor and move assignment operator (12.8), and destructor (12.4) are special member functions [...]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With