Compiler-Generated Special Member Functions in C++

Coding · Easy · Free problem
You define an empty class in C++: ```cpp class A {}; ``` No constructors, no destructor, no operators -- nothing. What member functions will the compiler generate for you automatically? What does each one do, and when does the compiler stop generating them?

Open the full interactive solver, hints, and worked solution →