+ 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
1 Antwort
+ 2
Quite tough. 😬
Take a look here:
https://stackoverflow.com/questions/39512381/why-do-we-use-initializer-list-in-c11