Relative Content

Tag Archive for c++initializer-listin-class-initialization

Difference in class member initialization C++

What’s the difference between initializing the object member variable m_A in-class versus (class B) in an initializer list (class C)? Is one method more efficient or generally preferred over the other?