When do we use Initializer List in C++? - GeeksforGeeks
Initializer List is used in initializing the data members of a class. The list of members to be initialized is indicated with constructor as a comma-separated list followed by a colon. Following is an example that uses the initializer list to initialize x and y of Point class.
https://www.geeksforgeeks.org/when-do-we-use-initializer-list-in-c/