¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita+ 2
Can someone please explain this MyClass(int a) : var(a) { }
C++
1 Respuesta
+ 1
MyClass(into a){var {a};} initializes var twice, in list and block. So we can say that using list in this case is more efficient