Learn C++ | Defaulted Function in Modern C++
Defaulted Function in Modern C++ are commonly used to implement default constructors, copy constructors, move constructors, copy assignment operators, move assignment operators, and destructors. When one of these special functions is declared as = default, the compiler will automatically generate the appropriate implementation based on the class’s other members.