+ 1

initializer_list advantages c++11

Hi All I am pretty much aware about class constructor using member initialisation... This is available before c++11 I guess... However, consider below example : https://code.sololearn.com/cosnYLm273jK/?ref=app Is this initializer_list new in c++11 ? Why would anyone need this ? Any specific reason to introduce this? I tried to search for some article , but it talks about only class member initialisation... Any thoughts / pointer would be helpful. Thanks a lot

15th Jun 2020, 7:02 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
1 Antwort
15th Jun 2020, 9:50 PM
Vasile Eftodii
Vasile Eftodii - avatar