L
lovecreatesbeauty
When write a class, we compose some member functions for the class and
the compiler provided the others implicitly. Scott Meyers's `Effective
C++ (2nd)' says in item 45 that 6 member functions will be provided
then called by standard-compliant compilers for a class: (1)default
constructor, (2)copy constructor, (3)destructor, (4)assignment
operator, (5)address-of operator (non-const), (6)address-of operator
(const).
Does standard-compliant compiler only provide these 6 member functions
implicitly? Are there some others?
Can't (only) these 6 member functions be derived from base (father)
class?
Does it mean that we can/have avoided most of the problems if we take
care of these functions.
the compiler provided the others implicitly. Scott Meyers's `Effective
C++ (2nd)' says in item 45 that 6 member functions will be provided
then called by standard-compliant compilers for a class: (1)default
constructor, (2)copy constructor, (3)destructor, (4)assignment
operator, (5)address-of operator (non-const), (6)address-of operator
(const).
Does standard-compliant compiler only provide these 6 member functions
implicitly? Are there some others?
Can't (only) these 6 member functions be derived from base (father)
class?
Does it mean that we can/have avoided most of the problems if we take
care of these functions.